| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | #[AsService, AsTagged(PropertyMapperInterface::class, priority: 3)] |
||
| 13 | final class AttributeArrayTypeMapper implements PropertyMapperInterface |
||
| 14 | { |
||
| 15 | public function map(\ReflectionProperty $property, mixed $value): array |
||
| 16 | { |
||
| 17 | return [ |
||
| 18 | PropertyHelper::getName($property) => array_map(static fn () => PropertyHelper::getTypeFromAttribute($property), range(0, \count($value))), |
||
| 19 | ]; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function canMap(\ReflectionProperty $property): bool |
||
| 25 | } |
||
| 26 | } |
||
| 27 |