Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class BasicPolicy implements PolicyInterface |
||
8 | { |
||
9 | 4 | public function __construct( |
|
13 | |||
14 | 3 | public function evaluate( |
|
15 | AuthorizationEntityInterface $actor, |
||
16 | AuthorizationEntityInterface $resource, |
||
17 | string $action, |
||
18 | array $context |
||
19 | ): bool |
||
20 | { |
||
21 | 3 | return $this->evaluator->hasAccess($actor, $resource, $action, $context); |
|
22 | } |
||
23 | |||
24 | 2 | public function getDescription(): string |
|
27 | } |
||
28 | } |
||
29 |