PropertiesTrait
Trait PropertiesTrait
Provides utilities for reading and writing class properties, primarily for limiting access to public properties.
Table of Contents
Methods
- fill() : $this
- Attempts to set the values of public class properties.
- getNonPublicProperties() : array<string|int, mixed>
- Get the protected and private properties of the class and return as an array.
- getPublicProperties() : array<string|int, mixed>
- Get the public properties of the class and return as an array.
Methods
fill()
Attempts to set the values of public class properties.
public
final fill(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Return values
$thisgetNonPublicProperties()
Get the protected and private properties of the class and return as an array.
public
final getNonPublicProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>getPublicProperties()
Get the public properties of the class and return as an array.
public
final getPublicProperties() : array<string|int, mixed>