1 | <?php |
||
4 | class GenericAccessPolicy implements AccessPolicy { |
||
5 | |||
6 | /** @var string */ |
||
7 | private $actionId; |
||
8 | |||
9 | /** @var bool */ |
||
10 | private $accessPermitted = true; |
||
11 | |||
12 | /** @var array[] */ |
||
13 | private $forbiddenParameters = []; |
||
14 | |||
15 | /** |
||
16 | * @param string $actionId |
||
17 | */ |
||
18 | public function __construct($actionId) { |
||
21 | |||
22 | /** |
||
23 | * @param string $actionId |
||
24 | * @return boolean |
||
25 | */ |
||
26 | public function isPermitted($actionId) { |
||
29 | |||
30 | /** |
||
31 | * @param string $actionId |
||
32 | * @param array $parameters |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function isExecutionPemitted($actionId, array $parameters) { |
||
38 | |||
39 | /** |
||
40 | * @return static |
||
41 | */ |
||
42 | public function denyAccess() { |
||
46 | |||
47 | /** |
||
48 | * @param array $parameters |
||
49 | * @return static |
||
50 | */ |
||
51 | public function denyExecutionWith(array $parameters) { |
||
55 | } |