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