* $initializer = function ( * & ?object $wrappedObject, * LazyLoadingInterface $proxy, * string $calledMethod, * array $callParameters, * & ?\Closure $initializer, * array $propertiesToBeSet = [] // works only on ghost objects * ) {}; * * * @psalm-param null|Closure( * LazilyLoadedObjectType|null=, * LazilyLoadedObjectType&LazyLoadingInterface=, * string=, * array=, * ?Closure=, * array= * ) : bool $initializer * * Due to BC compliance, we cannot add a native `: void` return type declaration here * * phpcs:disable SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint * * @return void */ public function setProxyInitializer(?Closure $initializer = null); /** * @psalm-return null|Closure( * LazilyLoadedObjectType|null=, * LazilyLoadedObjectType&LazyLoadingInterface=, * string, * array=, * ?Closure=, * array= * ) : bool */ public function getProxyInitializer(): ?Closure; /** * Force initialization of the proxy * * @return bool true if the proxy could be initialized */ public function initializeProxy(): bool; /** * Retrieves current initialization status of the proxy */ public function isProxyInitialized(): bool; }