Lines Matching refs:obj
10 function test(string $name, object $obj) {
15 var_dump($reflector->isUninitializedLazyObject($obj));
16 var_dump($obj->a);
17 var_dump($reflector->isUninitializedLazyObject($obj));
22 $obj = $reflector->newLazyGhost(function ($obj) {
24 $obj->a = 1;
27 test('Ghost', $obj);
29 $obj = $reflector->newLazyProxy(function ($obj) {
31 $obj = new C();
32 $obj->a = 1;
33 return $obj;
36 test('Proxy', $obj);