Lines Matching refs:reflection
8 $reflection = new ReflectionClass('closure');
9 var_dump($reflection->hasMethod('__invoke')); // true
11 $reflection = new ReflectionClass($closure);
12 var_dump($reflection->hasMethod('__invoke')); // true
14 $reflection = new ReflectionObject($closure);
15 var_dump($reflection->hasMethod('__invoke')); // true
17 $reflection = new ReflectionClass('closure');
18 var_dump($h = $reflection->getMethod('__invoke')); // true
21 $reflection = new ReflectionClass($closure);
22 var_dump($h = $reflection->getMethod('__invoke')); // true
25 $reflection = new ReflectionObject($closure);
26 var_dump($h = $reflection->getMethod('__invoke')); // true