Conditions | 4 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.0312 |
Changes | 0 |
1 | <?php |
||
42 | 15 | protected function getMethodAnnotationFromController(callable $controller, string $annotationClass) |
|
43 | { |
||
44 | 15 | if (\is_array($controller) |
|
45 | 15 | && isset($controller[1]) |
|
46 | 15 | && \is_object($objectToReflect = $this->getObjectToReflect($controller)) |
|
47 | ) { |
||
48 | 15 | return $this->getAnnotationReader()->getMethodAnnotation( |
|
49 | 15 | new \ReflectionMethod($objectToReflect, $controller[1]), |
|
50 | 15 | $annotationClass |
|
51 | ); |
||
52 | } |
||
53 | |||
54 | return null; |
||
55 | } |
||
56 | |||
75 |