| Total Complexity | 2 | 
| Total Lines | 12 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | final class CallableRule implements RuleInterface | ||
| 14 | { | ||
| 15 | private \Closure $callable; | ||
| 16 | |||
| 17 | 2 | public function __construct(callable $callable) | |
| 18 |     { | ||
| 19 | 2 | $this->callable = $callable(...); | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | public function allows(ActorInterface $actor, string $permission, array $context): bool | |
| 25 | } | ||
| 26 | } | ||
| 27 |