Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class RbacAccessChecker |
||
9 | { |
||
10 | /** @var RepositoryRegistry $repositoryRegistry */ |
||
11 | private $repositoryRegistry; |
||
12 | |||
13 | /** |
||
14 | * @param RepositoryRegistry $repositoryRegistry |
||
15 | */ |
||
16 | public function __construct(RepositoryRegistry $repositoryRegistry) |
||
17 | { |
||
18 | $this->repositoryRegistry = $repositoryRegistry; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Checks access status. |
||
23 | * |
||
24 | * @throws QueryException |
||
25 | */ |
||
26 | public function hasAccess(string $userId, string $permissionName): bool |
||
53 | } |
||
54 | } |