ReflectionClass::getLazyInitializer

(PHP 8 >= 8.4.0)

ReflectionClass::getLazyInitializerレイジーイニシャライザを取得する

説明

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

objectに アタッチされているレイジーイニシャライザまたはファクトリを取得します。

パラメータ

object
イニシャライザを取得する対象のオブジェクト。

戻り値

オブジェクトが未初期化のレイジーオブジェクトであればイニシャライザを、 そうでなければ null を返します。

参考

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant