| 1 | <?php |
||
| 9 | final class PasswordRequestCreationException extends SixtyEightPublishers\User\Common\Exception\RuntimeException |
||
| 10 | { |
||
| 11 | const CODE_NOT_REGISTERED_EMAIL = 1001; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $email |
||
| 15 | * |
||
| 16 | * @return \SixtyEightPublishers\User\ForgotPassword\Exception\PasswordRequestCreationException |
||
| 17 | */ |
||
| 18 | public static function notRegisteredEmail(string $email): self |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \Throwable $e |
||
| 28 | * |
||
| 29 | * @return \SixtyEightPublishers\User\ForgotPassword\Exception\PasswordRequestCreationException |
||
| 30 | */ |
||
| 31 | public static function from(\Throwable $e): self |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | public function isNotRegisteredEmail(): bool |
||
| 43 | } |
||
| 44 |