| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | #[AsService, AsTagged(PropertyMapperInterface::class, priority: 3)] |
||
| 13 | class ArrayAsAttributePropertyMapper implements PropertyMapperInterface |
||
| 14 | { |
||
| 15 | public function __construct( |
||
| 18 | } |
||
| 19 | |||
| 20 | public function map(\ReflectionProperty $property, mixed $value): array |
||
| 21 | { |
||
| 22 | return [PropertyHelper::getName($property) => array_map(fn () => $this->extractor->extract($property), range(0, \count($value)))]; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function canMap(\ReflectionProperty $property): bool |
||
| 28 | } |
||
| 29 | } |
||
| 30 |