Property | Type | Description | |
---|---|---|---|
$__cloner__ | the callback responsible of loading properties that need to be copied in the cloned object | ||
$__initializer__ | the callback responsible for loading properties in the proxy object. This callback is called with three parameters, being respectively the proxy object to be initialized, the method that triggered the initialization process and an array of ordered parameters that were passed to that method. | ||
$__isInitialized__ | flag indicating if this object was already initialized | ||
$lazyPropertiesDefaults | properties to be lazy loaded, with keys being the property names and values being their default values |
Method | Description | |
---|---|---|
__construct ( Closure $initializer = null, Closure $cloner = null ) | ||
__getCloner ( ) | {@inheritDoc} | |
__getInitializer ( ) | {@inheritDoc} | |
__getLazyProperties ( ) | {@inheritDoc} | |
__isInitialized ( ) | {@inheritDoc} | |
__load ( ) | Forces initialization of the proxy | |
__setCloner ( Closure $cloner = null ) | {@inheritDoc} | |
__setInitialized ( $initialized ) | {@inheritDoc} | |
__setInitializer ( Closure $initializer = null ) | {@inheritDoc} |
public __construct ( Closure $initializer = null, Closure $cloner = null ) | ||
$initializer | Closure | |
$cloner | Closure |
public __setCloner ( Closure $cloner = null ) | ||
$cloner | Closure |
public __setInitializer ( Closure $initializer = null ) | ||
$initializer | Closure |
public $__cloner__ |
public $__initializer__ |
public $__isInitialized__ |