| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | #[AsService] |
||
| 15 | final class ExceptionMapperLocator implements ExceptionMapperLocatorInterface |
||
| 16 | { |
||
| 17 | private readonly HashMap $mappers; |
||
| 18 | |||
| 19 | public function __construct(#[TaggedIterator(ExceptionMapperInterface::class, defaultIndexMethod: 'getType')] iterable $mappers) |
||
| 22 | } |
||
| 23 | |||
| 24 | public function get(\Throwable $exception): ExceptionMapper |
||
| 32 |