« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for realInstance (0.000 sec.)
ReflectionClass::newLazyProxy — 新しいレイジープロキシインスタンスを作成する | ... 9414
ReflectionClass::newLazyProxy (PHP 8 >= 8.4.0) ReflectionClass::newLazyProxy — 新しいレイジープロキシインスタンスを作成する 説明 public function ReflectionClass::newLazyProxy ( callable $factory , int $options = 0 ): object クラスの新しいレ ... $reflector = new ReflectionClass ( Example ::class); $object = $reflector -> newLazyProxy (function ( Example $object ) { $realInstance = new Example ( 1 ); return $realInstance ; }); var_dump ( $object ); var_dump ( $object instanceof Example ); // 初期化を ...
https://man.mtool.work/php/8.3/reflectionclass.newlazyproxy.html
PREV 1 NEXT