1 | <?php |
||
11 | abstract class KeyRepositoryAccessControl implements AccessControl |
||
12 | { |
||
13 | /** |
||
14 | * @var KeyRepository |
||
15 | */ |
||
16 | private $keyRepository; |
||
17 | |||
18 | /** |
||
19 | * KeyRepositoryAccessControl constructor. |
||
20 | * @param KeyRepository $keyRepository |
||
21 | */ |
||
22 | 6 | public function __construct(KeyRepository $keyRepository) |
|
26 | |||
27 | /** |
||
28 | * @param $apiKey |
||
29 | * @return bool |
||
30 | */ |
||
31 | 6 | public function validateKey($apiKey): bool |
|
35 | } |
||
36 |