Searched refs:getHook (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/reflection/tests/property_hooks/ |
H A D | ReflectionProperty_getHook_inheritance.phpt | 2 ReflectionClass::getHook() inheritance 28 echo ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($a)), "\n"; 29 echo ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($b)), "\n"; 30 echo ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Get)->invoke($b)), "\n"; 32 ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($a, null)); 33 ((new ReflectionProperty(A::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($b, null)); 34 ((new ReflectionProperty(B::class, 'foo'))->getHook(PropertyHookType::Set)->invoke($b, null));
|
H A D | basics.phpt | 33 var_dump($rp1->getHook(PropertyHookType::Get)); 35 var_dump($rp1->getHook(PropertyHookType::Set)); 41 var_dump($g = $rp2->getHook(PropertyHookType::Get)); 43 var_dump($s = $rp2->getHook(PropertyHookType::Set)); 58 var_dump($g = $rp3->getHook(PropertyHookType::Get)); 60 var_dump($s = $rp3->getHook(PropertyHookType::Set));
|
H A D | hook_guard.phpt | 24 (new ReflectionProperty(B::class, 'prop'))->getHook(PropertyHookType::Set)->invoke($b, 43); 25 var_dump((new ReflectionProperty(B::class, 'prop'))->getHook(PropertyHookType::Get)->invoke($b));
|
H A D | gh15718.phpt | 23 var_dump( $prop->getHook( PropertyHookType::Get ) ); 24 var_dump( $prop->getHook( PropertyHookType::Set ) );
|
/php-src/Zend/tests/property_hooks/ |
H A D | attributes.phpt | 19 $getAttr = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Get)->getAttribute… 24 $setAttr = (new ReflectionProperty(C::class, 'prop'))->getHook(PropertyHookType::Set)->getAttribute…
|
/php-src/ext/reflection/ |
H A D | php_reflection.stub.php | 567 public function getHook(PropertyHookType $type): ?ReflectionMethod {} function in ReflectionProperty
|
H A D | php_reflection_arginfo.h | 887 ZEND_METHOD(ReflectionProperty, getHook); 1188 ZEND_ME(ReflectionProperty, getHook, arginfo_class_ReflectionProperty_getHook, ZEND_ACC_PUBLIC)
|
H A D | php_reflection.c | 6397 ZEND_METHOD(ReflectionProperty, getHook) in ZEND_METHOD() argument
|
Completed in 85 milliseconds