PropertiesPart
trait PropertiesPart
Properties part
For all models that can have properties
Methods
$this
setProperties(array $properties)
Sets a collection of properties
$this
$this
bool
getProperty(string $nameOrProperty)
Returns a property
Map
getProperties()
Returns a collection of properties
Set
getPropertyNames()
Returns all property names
$this
clearProperties()
Clears all properties
Details
at line line 29
$this
setProperties(array $properties)
Sets a collection of properties
at line line 49
$this
setProperty(PhpProperty $property)
Adds a property
at line line 63
$this
removeProperty(PhpProperty|string $nameOrProperty)
Removes a property
at line line 84
bool
hasProperty(PhpProperty|string $nameOrProperty)
Checks whether a property exists
at line line 99
PhpProperty
getProperty(string $nameOrProperty)
Returns a property
at line line 116
Map
getProperties()
Returns a collection of properties
at line line 125
Set
getPropertyNames()
Returns all property names
at line line 134
$this
clearProperties()
Clears all properties