ReflectionClass::getLazyInitializer

(PHP 8 >= 8.4.0)

ReflectionClass::getLazyInitializerGets lazy initializer

Descripción

public ReflectionClass::getLazyInitializer(object $object): ?callable

Gets the lazy initializer or factory attached to object.

Parámetros

object
The object from which to get the initializer.

Valores devueltos

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

Ver también