| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 15 | public static function getAttribute(\ReflectionProperty|\ReflectionClass|\ReflectionMethod|\ReflectionFunction|\ReflectionParameter $target, string $attributeClass): ?object |
|
| 31 | { |
||
| 32 | 15 | return ArrayList::collect(self::getAttributes($target, $attributeClass)) |
|
| 33 | ->firstElement() |
||
| 34 | ->get() |
||
| 35 | ; |
||
| 53 |