| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function matchesClass(ReflectionClass $class, array $arguments): bool |
||
| 19 | { |
||
| 20 | assert($class instanceof \Ray\Aop\ReflectionClass); |
||
| 21 | 5 | /** @var array<class-string> $arguments */ |
|
| 22 | [$annotation] = $arguments; |
||
| 23 | 5 | /** @psalm-suppress MixedAssignment $annotation */ |
|
| 24 | 5 | $annotation = $class->getAnnotation($annotation); |
|
| 25 | 5 | ||
| 26 | return (bool) $annotation; |
||
| 27 | } |
||
| 43 |