PropertiesTrait
Get a list of property fields for this class.
Table of Contents
Methods
- getProperties() : array<string|int, string>
- Get a list of properties for this object.
- getPropertyDefaults() : array<string|int, mixed>
- Get a list of default properties for this object.
- getPropertyTypes() : array<string|int, string>
- Get a list of properties, with respective types (if available).
Methods
getProperties()
Get a list of properties for this object.
public
static getProperties() : array<string|int, string>
By default this is a set of non-static public properties, but can be overridden by child classes that might want to show or hide other data.
This is used by:
Return values
array<string|int, string>getPropertyDefaults()
Get a list of default properties for this object.
public
static getPropertyDefaults() : array<string|int, mixed>
By default this is all non-static public properties with compile time default values. That is, defined in the class definition.
Return values
array<string|int, mixed> —[ name => value ]
getPropertyTypes()
Get a list of properties, with respective types (if available).
public
static getPropertyTypes() : array<string|int, string>
Object properties can have strict types. If not typed, all properties
will be mixed.
Return values
array<string|int, string> —[ name => type ]