1 | <?php |
||
12 | abstract class Registration extends \yii\base\Model |
||
13 | { |
||
14 | /** |
||
15 | * The email |
||
16 | * @var string $email |
||
17 | */ |
||
18 | public $email; |
||
19 | |||
20 | /** |
||
21 | * The username |
||
22 | * @var string $username |
||
23 | */ |
||
24 | public $username; |
||
25 | |||
26 | /** |
||
27 | * The password |
||
28 | * @var string $password |
||
29 | */ |
||
30 | public $password; |
||
31 | |||
32 | /** |
||
33 | * The password repeated |
||
34 | * @var string $password_verify |
||
35 | */ |
||
36 | public $password_verify; |
||
37 | |||
38 | /** |
||
39 | * Validation rules |
||
40 | * @return array |
||
41 | */ |
||
42 | public function rules() |
||
54 | |||
55 | /** |
||
56 | * Verifies the username |
||
57 | * @param string $attribute |
||
58 | * @param array $params |
||
59 | */ |
||
60 | public function verifyUsernameOrEmail($attribute, $params) |
||
73 | |||
74 | /** |
||
75 | * Registers a new user |
||
76 | * @return boolean |
||
77 | */ |
||
78 | public function register() |
||
105 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.