| 1 | <?php |
||
| 16 | class CallableRule implements RuleInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var callable |
||
| 20 | */ |
||
| 21 | private $callable = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param callable $callable |
||
| 25 | */ |
||
| 26 | public function __construct(callable $callable) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function allows(ActorInterface $actor, string $permission, array $context): bool |
||
| 38 | } |