Home
last modified time | relevance | path

Searched refs:getHook (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/reflection/tests/property_hooks/
H A DReflectionProperty_getHook_inheritance.phpt2 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 Dbasics.phpt33 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 Dhook_guard.phpt24 (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 Dgh15718.phpt23 var_dump( $prop->getHook( PropertyHookType::Get ) );
24 var_dump( $prop->getHook( PropertyHookType::Set ) );
/php-src/Zend/tests/property_hooks/
H A Dattributes.phpt19 $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 Dphp_reflection.stub.php567 public function getHook(PropertyHookType $type): ?ReflectionMethod {} function in ReflectionProperty
H A Dphp_reflection_arginfo.h887 ZEND_METHOD(ReflectionProperty, getHook);
1188 ZEND_ME(ReflectionProperty, getHook, arginfo_class_ReflectionProperty_getHook, ZEND_ACC_PUBLIC)
H A Dphp_reflection.c6397 ZEND_METHOD(ReflectionProperty, getHook) in ZEND_METHOD() argument

Completed in 47 milliseconds