Total Complexity | 7 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 92.86% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class MapperProvider implements MapperProviderInterface |
||
17 | { |
||
18 | /** @var array<non-empty-string, MapperInterface> */ |
||
|
|||
19 | private array $mappers = []; |
||
20 | |||
21 | 7418 | public function __construct( |
|
22 | private ?ORMInterface $orm, |
||
23 | private FactoryInterface $factory |
||
24 | ) { |
||
25 | } |
||
26 | |||
27 | 6826 | public function getMapper(string $entity): MapperInterface |
|
37 | } |
||
38 | |||
39 | 34 | public function prepareMappers(): void |
|
49 | } |
||
50 | } |
||
51 |