| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class RepositoryFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var NamespaceHelper |
||
| 12 | */ |
||
| 13 | protected $namespaceHelper; |
||
| 14 | /** |
||
| 15 | * @var EntityManagerInterface |
||
| 16 | */ |
||
| 17 | protected $entityManager; |
||
| 18 | |||
| 19 | public function __construct(EntityManagerInterface $entityManager, NamespaceHelper $namespaceHelper) |
||
| 20 | { |
||
| 21 | $this->entityManager = $entityManager; |
||
| 22 | $this->namespaceHelper = $namespaceHelper; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getRepository(string $entityFqn): EntityRepositoryInterface |
||
| 30 | } |
||
| 31 | } |
||
| 32 |