Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class TestAuthHttpStorage implements TokenStorageInterface |
||
18 | { |
||
19 | public function load(string $id): ?TokenInterface |
||
20 | { |
||
21 | if ($id === 'bad') { |
||
22 | return null; |
||
23 | } |
||
24 | |||
25 | return new TestAuthHttpToken($id, ['id' => $id]); |
||
26 | } |
||
27 | |||
28 | public function create(array $payload, \DateTimeInterface $expiresAt = null): TokenInterface |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | public function delete(TokenInterface $token): void |
||
41 |