(PHP 8 >= 8.4.0)
ReflectionClass::getLazyInitializer — Gets lazy initializer
public ReflectionClass::getLazyInitializer(object $object): ?callable
Gets the lazy initializer or factory attached to object.
object Returns the initializer if the object is an uninitialized lazy object, null otherwise.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionclass.getlazyinitializer.php