| 1 | <?php |
||
| 12 | final class ResetPassword |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $password; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $resetToken; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Identity |
||
| 26 | */ |
||
| 27 | private $userId; |
||
| 28 | |||
| 29 | public function __construct(string $password, string $resetToken, Identity $userId) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getPassword(): string |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Getter de resetToken |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getResetToken() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Identity |
||
| 56 | */ |
||
| 57 | public function getUserId(): Identity |
||
| 61 | } |
||
| 62 |