| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RepositoryRegistry |
||
| 13 | { |
||
| 14 | /** @var EntityManager $entityManager */ |
||
| 15 | private $entityManager; |
||
| 16 | |||
| 17 | public function __construct(EntityManager $entityManager) |
||
| 18 | { |
||
| 19 | $this->entityManager = $entityManager; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getPermissionRepository(): PermissionRepository |
||
| 23 | { |
||
| 24 | return $this->entityManager->getRepository('\\Potievdev\\SlimRbac\\Models\\Entity\\Permission'); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | public function getRoleRepository(): RoleRepository |
||
| 28 | { |
||
| 29 | return $this->entityManager->getRepository('\\Potievdev\\SlimRbac\\Models\\Entity\\Role'); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getUserRoleRepository(): UserRoleRepository |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getRolePermissionRepository(): RolePermissionRepository |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getRoleHierarchyRepository(): RoleHierarchyRepository |
||
| 45 | } |
||
| 46 | |||
| 48 |