Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | final class CallableRule implements RuleInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var callable |
||
24 | */ |
||
25 | private $callable = null; |
||
26 | |||
27 | /** |
||
28 | * @param callable $callable |
||
29 | */ |
||
30 | public function __construct(callable $callable) |
||
31 | { |
||
32 | $this->callable = $callable; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function allows(ActorInterface $actor, string $permission, array $context): bool |
||
41 | } |
||
42 | } |
||
43 |