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