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