Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionClass::getInterfacesReflectionClass::getMethod>
^ReflectionClassLast updated: Mon, 26 Oct 2026

ReflectionClass::getLazyInitializer

(PHP 8 >= 8.4.0)

ReflectionClass::getLazyInitializer — Gets lazy initializer

Description

public function 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


<ReflectionClass::getInterfacesReflectionClass::getMethod>
^ReflectionClassLast updated: Mon, 26 Oct 2026