Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class StaticValidator implements ValidatorInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $tokenList; |
||
16 | |||
17 | /** |
||
18 | * StaticTokenValidator constructor. |
||
19 | * |
||
20 | * @param array $tokenList |
||
21 | */ |
||
22 | public function __construct(array $tokenList) |
||
23 | { |
||
24 | $this->tokenList = $tokenList; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string $token |
||
29 | * |
||
30 | * @throws \Xervice\Service\Middleware\Security\Exception\AuthenticationFailed |
||
31 | */ |
||
32 | public function validate(string $token): void |
||
36 | } |
||
37 | } |
||
38 | } |