| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class TestStorage implements TokenStorageInterface |
||
| 18 | { |
||
| 19 | public function load(string $id): ?TokenInterface |
||
| 20 | { |
||
| 21 | if ($id === 'bad') { |
||
| 22 | return null; |
||
| 23 | } |
||
| 24 | |||
| 25 | return new TestToken($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 |
||
| 39 | } |
||
| 40 | } |
||
| 41 |