php8.5
Home/ Manual/ reflection / reflectionclass/ ReflectionClass::getLazyInitializer

ReflectionClass::getLazyInitializer

PHP function Edit on GitHub ✎

(PHP 8 >= 8.4.0)

Gets lazy initializer

Description

ReflectionClass::getLazyInitializer(object $object): callable|null

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

Source: reference/reflection/reflectionclass/getlazyinitializer.xml · from the official PHP manual (php/doc-en)