| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class RepositoryFactory |
||
| 14 | { |
||
| 15 | |||
| 16 | /** @var EntityManagerInterface $entityManager */ |
||
| 17 | protected $entityManager; |
||
| 18 | |||
| 19 | /** @var array $entities */ |
||
| 20 | protected $entities; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * RepositoryFactory constructor. |
||
| 24 | * @param EntityManagerInterface $entityManager |
||
| 25 | * @param array $entities |
||
| 26 | */ |
||
| 27 | public function __construct(EntityManagerInterface $entityManager, array $entities) |
||
| 28 | { |
||
| 29 | $this->entityManager = $entityManager; |
||
| 30 | $this->entities = $entities; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $tableName |
||
| 35 | * @return RepositoryInterface|null |
||
| 36 | */ |
||
| 37 | public function create(string $tableName): ?RepositoryInterface |
||
| 49 | } |
||
| 50 | } |
||
| 51 |