| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class PropertyHelper |
||
| 11 | { |
||
| 12 | public static function getTypeName(\ReflectionProperty $property): string |
||
| 19 | }; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @template T |
||
| 24 | * |
||
| 25 | * @param class-string<T> $attribute |
||
|
|
|||
| 26 | * |
||
| 27 | * @return null|T |
||
| 28 | */ |
||
| 29 | public static function getAttribute(\ReflectionProperty $property, string $attribute): ?object |
||
| 38 |