1 | <?php |
||
10 | class SignupForm extends \yii\base\Model |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | public $email; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | public $password; |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public $fullName; |
||
24 | /** |
||
25 | * @var \app\models\entity\User |
||
26 | */ |
||
27 | private $user; |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function rules() |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function attributeLabels() |
||
63 | |||
64 | /** |
||
65 | * Signs user up |
||
66 | * |
||
67 | * @throws Exception |
||
68 | * @return \app\models\entity\User |
||
69 | */ |
||
70 | public function signup(): User |
||
93 | |||
94 | /** |
||
95 | * Sends an email with a link, for confirm the email |
||
96 | * |
||
97 | * @throws UserException |
||
98 | */ |
||
99 | private function sendEmail(): void |
||
121 | } |
||
122 |