1 | <?php |
||
29 | class DenyAcl implements Acl |
||
30 | { |
||
31 | /** |
||
32 | * @var \Caridea\Acl\Target The target |
||
33 | */ |
||
34 | private $target; |
||
35 | |||
36 | /** |
||
37 | * Creates a new DenyAcl. |
||
38 | * |
||
39 | * @param \Caridea\Acl\Target $target The target |
||
40 | */ |
||
41 | 3 | public function __construct(Target $target) |
|
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | 1 | public function can(array $subjects, string $verb): bool |
|
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | 1 | public function getParent(): ?Acl |
|
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | 1 | public function getTarget(): Target |
|
69 | } |
||
70 |