| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Factory |
||
| 17 | { |
||
| 18 | /** @var array<string, AMapper> */ |
||
| 19 | protected static array $instances = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Which instances of mappers are available |
||
| 23 | * @param string $path |
||
| 24 | * @throws MapperException when initialization fails |
||
| 25 | * @return AMapper |
||
| 26 | */ |
||
| 27 | 173 | public function getInstance(string $path): AMapper |
|
| 45 |