1 | <?php |
||
9 | class OneKeyAccessControl implements AccessControl { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $key; |
||
14 | |||
15 | /** |
||
16 | * @param string $key |
||
17 | */ |
||
18 | public function __construct($key){ |
||
21 | |||
22 | /** |
||
23 | * @param \LunixREST\Request\Request $request |
||
24 | * @return bool true if key is valid |
||
25 | */ |
||
26 | public function validateAccess(Request $request){ |
||
29 | |||
30 | /** |
||
31 | * @param $apiKey |
||
32 | * @return bool true if key is the key specified in the constructor |
||
33 | */ |
||
34 | public function validateKey($apiKey){ |
||
37 | } |
||
38 |