| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class EntityRepositoryManager extends AbstractPluginManager implements EntityRepositoryProviderInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * An object type that the created instance must be instanced of |
||
| 19 | * |
||
| 20 | * @var null|string |
||
| 21 | */ |
||
| 22 | protected $instanceOf = EntityRepositoryInterface::class; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $entityName |
||
| 26 | * |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function hasRepository(string $entityName): bool |
||
| 30 | { |
||
| 31 | return $this->has($entityName); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $entityName |
||
| 36 | * @param array $options |
||
| 37 | * |
||
| 38 | * @return EntityRepositoryInterface |
||
| 39 | * |
||
| 40 | * @throws \Throwable |
||
| 41 | */ |
||
| 42 | public function getRepository(string $entityName, array $options = []): EntityRepositoryInterface |
||
| 45 | } |
||
| 46 | } |
||
| 47 |