| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | #[AsService] |
||
| 13 | class MapperLocator implements MapperLocatorInterface |
||
| 14 | { |
||
| 15 | /** @var ArrayList<string, callable|TypeMapper> */ |
||
| 16 | private readonly ArrayList $mappers; |
||
| 17 | |||
| 18 | 19 | public function __construct( |
|
| 19 | #[TaggedIterator(TypeMapper::class, defaultPriorityMethod: 'getPriority')] |
||
| 20 | iterable $mappers, |
||
| 21 | ) { |
||
| 22 | 19 | $this->mappers = ArrayList::collect($mappers); |
|
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | 19 | public function get(string $typeName, mixed $value = null): MapperInterface |
|
| 30 | ; |
||
| 31 | } |
||
| 33 |