1 | <?php |
||
7 | final class ResetPassword |
||
8 | { |
||
9 | /** |
||
10 | * @var UserInterface |
||
11 | */ |
||
12 | private $user; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $password; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $passwordConfirmation; |
||
23 | |||
24 | /** |
||
25 | * ResetPassword constructor. |
||
26 | * |
||
27 | * @param UserInterface $user |
||
28 | * @param $password |
||
29 | * @param $passwordConfirmation |
||
30 | */ |
||
31 | public function __construct(UserInterface $user, $password, $passwordConfirmation) |
||
37 | |||
38 | /** |
||
39 | * @return UserInterface |
||
40 | */ |
||
41 | public function getUser() |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getPassword() |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function passwordConfirmationIsValid() |
||
65 | } |
||
66 |