ReflectionClass::getLazyInitializer

Gets lazy initializer

Description

public callablenull ReflectionClass::getLazyInitializer(object $object)

Gets the lazy initializer or factory attached to object.

Parameters

object
The object from which to get the initializer.

Return Values

Returns the initializer if the object is an uninitialized lazy object, null otherwise.

See Also