| Total Complexity | 4 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | #[AsService, AsTagged(PropertyMapperInterface::class, priority: 1)] |
||
| 14 | final class BuiltinPropertyMapper implements PropertyMapperInterface |
||
| 15 | { |
||
| 16 | public function __construct( |
||
| 17 | private readonly PhpDocReader $reader, |
||
| 18 | ) { |
||
| 19 | } |
||
| 20 | |||
| 21 | public function map(\ReflectionProperty $property, mixed $value): array |
||
| 22 | { |
||
| 23 | return [PropertyHelper::getName($property) => PropertyHelper::getTypeName($property)]; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function canMap(\ReflectionProperty $property): bool |
||
| 29 | } |
||
| 30 | } |
||
| 31 |