PHP 8.4.0 RC4 available for testing

ReflectionClass::getLazyInitializer

(PHP 8 >= 8.4.0)

ReflectionClass::getLazyInitializerGets lazy initializer

説明

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

Gets the lazy initializer or factory attached to object.

パラメータ

object
The object from which to get the initializer.

戻り値

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top