1 | <?php |
||
12 | class AllAccessListAccessControl implements AccessControl |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $keys; |
||
18 | |||
19 | /** |
||
20 | * @param array $keys |
||
21 | */ |
||
22 | 2 | public function __construct(Array $keys) |
|
26 | |||
27 | /** |
||
28 | * @param \LunixREST\APIRequest\APIRequest $request |
||
29 | * @return bool true if key is valid |
||
30 | */ |
||
31 | 1 | public function validateAccess(APIRequest $request) |
|
35 | |||
36 | /** |
||
37 | * @param $apiKey |
||
38 | * @return bool true if key is in the array passed to this object in it's construction |
||
39 | */ |
||
40 | 2 | public function validateKey($apiKey) |
|
44 | } |
||
45 |