Trait DynamicObjectTrait
DynamicObjectTrait adds methods for dynamically defining methods, flags, and properties.
Direct Known Users
Peridot\Leo\Assertion
public
mixed
|
|
public
mixed
|
#
addProperty( string $name, callable $factory, boolean $memoize = false )
Adds a lazy property identified by the given name. The property is lazy because it is not evaluated until asked for via __get(). |
public
mixed
|
|
public
mixed
|
protected
array
|
$methods
|
#
[]
|
protected
array
|
$properties
|
#
[]
|
protected
array
|
$flags
|
#
[]
|