Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
19 | protected function getClassAnnotationFromController(callable $controller = null, string $annotationClass) |
||
20 | { |
||
21 | $objectToReflect = $this->getObjectToReflect($controller); |
||
22 | |||
23 | if (is_object($objectToReflect)) { |
||
24 | return $this->getAnnotationReader()->getClassAnnotation( |
||
25 | new \ReflectionObject($objectToReflect), |
||
26 | $annotationClass |
||
27 | ); |
||
28 | } |
||
29 | } |
||
30 | |||
66 |