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