| Methods |
public
|
__setInitialized(bool $initialized): void
Marks the proxy as initialized or not.
Marks the proxy as initialized or not.
|
#
|
public
|
__setInitializer(?Closure $initializer = null): void
Sets the initializer callback to be used when initializing the proxy. That
initializer should accept 3 parameters: …
Sets the initializer callback to be used when initializing the proxy. That
initializer should accept 3 parameters: $proxy, $method and $params. Those
are respectively the proxy object that is being initialized, the method name
that triggered initialization and the parameters passed to that method.
|
#
|
public
|
__getInitializer(): Closure|null
Retrieves the initializer callback used to initialize the proxy.
Retrieves the initializer callback used to initialize the proxy.
|
#
|
public
|
__setCloner(?Closure $cloner = null): void
Sets the callback to be used when cloning the proxy. That initializer should accept
a single parameter, which is the…
Sets the callback to be used when cloning the proxy. That initializer should accept
a single parameter, which is the cloned proxy instance itself.
|
#
|
public
|
__getCloner(): Closure|null
Retrieves the callback to be used when cloning the proxy.
Retrieves the callback to be used when cloning the proxy.
|
#
|
public
|
__getLazyProperties(): array<string, mixed>
Retrieves the list of lazy loaded properties for a given proxy
Retrieves the list of lazy loaded properties for a given proxy
Returns
Keys are the property names, and values are the default values
for those properties.
|
#
|