Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 7 | public function match(ReflectionClass $reflectionClass): bool |
|
20 | { |
||
21 | 7 | $attributes = $reflectionClass->getAttributes($this->attribute, ReflectionAttribute::IS_INSTANCEOF); |
|
22 | 7 | $attributeNames = array_map( |
|
23 | 7 | static fn(ReflectionAttribute $attribute) => $attribute->getName(), |
|
24 | 7 | $attributes |
|
25 | 7 | ); |
|
26 | |||
27 | 7 | return !empty($attributeNames); |
|
28 | } |
||
30 |