Dutch PHP Conference 2026 - Call For Papers

ReflectionClass::getLazyInitializer

(PHP 8 >= 8.4.0)

ReflectionClass::getLazyInitializerGets lazy initializer

Description

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

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

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /