| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | trait GetAttributeTrait |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @template T of object |
||
| 18 | * |
||
| 19 | * @param class-string<T> $attributeName |
||
|
|
|||
| 20 | * |
||
| 21 | * @throws ParseException |
||
| 22 | * |
||
| 23 | * @return T |
||
| 24 | */ |
||
| 25 | 25 | public function getAttribute(ReflectionClass|ReflectionMethod|ReflectionParameter $reflector, string $attributeName): object |
|
| 36 |