| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | final class RepositoryManager extends AbstractPluginManager implements EntityRepositoryProviderInterface |
||
| 16 | { |
||
| 17 | protected $autoAddInvokableClass = false; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var class-string<EntityRepositoryInterface<EntityInterface>> |
||
|
|
|||
| 21 | */ |
||
| 22 | protected $instanceOf = EntityRepositoryInterface::class; |
||
| 23 | |||
| 24 | public function hasRepository(string $entityName): bool |
||
| 25 | { |
||
| 26 | return $this->has($entityName); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array<string, mixed> $options |
||
| 31 | * |
||
| 32 | * @return EntityRepositoryInterface<EntityInterface> |
||
| 33 | * |
||
| 34 | * @throws InvalidServiceException |
||
| 35 | * @throws ServiceNotFoundException |
||
| 36 | */ |
||
| 37 | public function getRepository(string $entityName, array $options = []): EntityRepositoryInterface |
||
| 40 | } |
||
| 41 | } |
||
| 42 |