| 1 | <?php |
||
| 12 | class ConfirmEmail |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Confirm email |
||
| 16 | * |
||
| 17 | * @param string $token |
||
| 18 | * @throws BadRequestHttpException |
||
| 19 | */ |
||
| 20 | public function setConfirmed(string $token): void |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Sends an email with a link, for confirm the email |
||
| 41 | * |
||
| 42 | * @throws UserException |
||
| 43 | */ |
||
| 44 | public function sendEmail(User $user): void |
||
| 68 | } |
||
| 69 |