1 | <?php |
||
8 | class ResetPasswordView implements HtmlElementInterface |
||
9 | { |
||
10 | use Renderable; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $token; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $passwordRules; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $displayMismatchPassword; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $displayPoorPassword; |
||
31 | |||
32 | /** |
||
33 | * ResetPasswordView constructor. |
||
34 | * |
||
35 | * @param $token |
||
36 | * @param $passwordRules |
||
37 | */ |
||
38 | public function __construct(string $token, string $passwordRules) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getToken(): string |
||
51 | |||
52 | /** |
||
53 | * @param bool $displayMismatchPassword |
||
54 | * |
||
55 | * @return ResetPasswordView |
||
56 | */ |
||
57 | public function withDisplayMismatchPassword(bool $displayMismatchPassword = true) : ResetPasswordView |
||
64 | |||
65 | /** |
||
66 | * @param bool $displayPoorPassword |
||
67 | * |
||
68 | * @return ResetPasswordView |
||
69 | */ |
||
70 | public function withDisplayPoorPassword(bool $displayPoorPassword = true) : ResetPasswordView |
||
77 | } |
||
78 |