| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class ObjectRepositoryFactory implements ObjectRepositoryFactoryInterface |
||
| 14 | { |
||
| 15 | /** @var ObjectRepositoryInterface[] */ |
||
| 16 | private $repositories = []; |
||
| 17 | |||
| 18 | 23 | public function addObjectRepository(string $className, ObjectRepositoryInterface $objectRepository) : void |
|
| 19 | { |
||
| 20 | 23 | $this->repositories[$className] = $objectRepository; |
|
| 21 | 23 | } |
|
| 22 | |||
| 23 | 22 | public function getRepository(string $className) : ObjectRepositoryInterface |
|
| 32 | } |
||
| 33 | } |
||
| 34 |