PropertiesTrait
Properties trait
Tags
Table of Contents
Properties
- $properties : array<string|int, mixed>
- Array of property generator objects
Methods
- addProperties() : static
- Add class properties
- addProperty() : static
- Add a class property
- getProperties() : array<string|int, mixed>
- Get all properties
- getProperty() : PropertyGenerator|null
- Get a class property
- hasProperties() : bool
- Has properties
- hasProperty() : bool
- Has a class property
- removeProperty() : static
- Remove a class property
Properties
$properties
Array of property generator objects
protected
array<string|int, mixed>
$properties
= []
Methods
addProperties()
Add class properties
public
addProperties(array<string|int, mixed> $properties) : static
Parameters
- $properties : array<string|int, mixed>
Return values
staticaddProperty()
Add a class property
public
addProperty(PropertyGenerator $property) : static
Parameters
- $property : PropertyGenerator
Return values
staticgetProperties()
Get all properties
public
getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>getProperty()
Get a class property
public
getProperty(mixed $property) : PropertyGenerator|null
Parameters
- $property : mixed
Return values
PropertyGenerator|nullhasProperties()
Has properties
public
hasProperties() : bool
Return values
boolhasProperty()
Has a class property
public
hasProperty(mixed $property) : bool
Parameters
- $property : mixed
Return values
boolremoveProperty()
Remove a class property
public
removeProperty(mixed $property) : static
Parameters
- $property : mixed