Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
32 | 2 | public function matchesMethod(ReflectionMethod $method, array $arguments): bool |
|
33 | 2 | { |
|
34 | assert($method instanceof \Ray\Aop\ReflectionMethod); |
||
35 | 2 | /** @var array<class-string> $arguments */ |
|
36 | [$annotation] = $arguments; |
||
37 | |||
38 | $annotation = $method->getAnnotation($annotation); |
||
39 | |||
40 | return (bool) $annotation; |
||
41 | 3 | } |
|
43 |