Total Complexity | 5 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class NoConfirmation implements ConfirmationInterface |
||
15 | { |
||
16 | /** |
||
17 | * @inheritDoc |
||
18 | */ |
||
19 | 1 | public function withStorage(Storage $storage) |
|
20 | { |
||
21 | 1 | return $this; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @inheritDoc |
||
26 | */ |
||
27 | 1 | public function withLogger(Logger $logger) |
|
28 | { |
||
29 | 1 | return $this; |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | 1 | public function withSubject(string $subject) |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * Generate a confirmation token. |
||
42 | * |
||
43 | * @throws \LogicException |
||
44 | */ |
||
45 | 1 | public function getToken(User $user, \DateTimeInterface $expire): string |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get user by confirmation token. |
||
52 | * |
||
53 | * @param string $token Confirmation token |
||
54 | * @return User |
||
55 | * @throws \LogicException |
||
56 | */ |
||
57 | 1 | public function from(string $token): User |
|
60 | } |
||
61 | } |
||
62 |