PHP: Hypertext Preprocessor (original) (raw)
ReflectionClass::getLazyInitializer
(PHP 8 >= 8.4.0)
ReflectionClass::getLazyInitializer — Gets lazy initializer
Description
public ReflectionClass::getLazyInitializer(object $object
): ?callable
Gets the lazy initializer or factory attached toobject
.
Parameters
object
The object from which to get the initializer.
Return Values
Returns the initializer if the object is an uninitialized lazy object, [null](reserved.constants.php#constant.null)
otherwise.