Total Complexity | 6 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PasswordResetRequestForm extends Model |
||
10 | { |
||
11 | public $email; |
||
12 | private $user; |
||
13 | |||
14 | public function __construct(UserInterface $user, $config = []) { |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function rules() |
||
29 | ]; |
||
30 | } |
||
31 | /** |
||
32 | * Sends an email with a link, for resetting the password. |
||
33 | * |
||
34 | * @return boolean whether the email was send |
||
35 | */ |
||
36 | public function sendEmail() |
||
59 |