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