Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | public function getData(string $class, string $method): array { |
||
27 | $reflection = new ReflectionMethod($class, $method); |
||
28 | if($reflection->getNumberOfParameters() < 1) { |
||
29 | return []; |
||
30 | } |
||
31 | /** @var mixed $value */ |
||
32 | $value = $this->annotationsReader->getAnnotation(static::ANNOTATION_NAME, $class, $method); |
||
33 | return (array) $value; |
||
34 | } |
||
36 | ?> |