1 | <?php |
||
9 | class UserBuilder extends ModelBuilder |
||
10 | { |
||
11 | /** |
||
12 | * @param $email |
||
13 | * |
||
14 | * @return $this |
||
15 | */ |
||
16 | 2 | public function setEmail($email) |
|
22 | |||
23 | /** |
||
24 | * @param $username |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | 2 | public function setUsername($username) |
|
34 | |||
35 | /** |
||
36 | * Set the user password. |
||
37 | * |
||
38 | * @param $password |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | 2 | public function setPassword($password) |
|
48 | |||
49 | /** |
||
50 | * Set the user first name. |
||
51 | * |
||
52 | * @param $firstName |
||
53 | * |
||
54 | * @return $this |
||
55 | */ |
||
56 | 1 | public function setFirstName($firstName) |
|
62 | |||
63 | /** |
||
64 | * Set the user last name. |
||
65 | * |
||
66 | * @param $lastName |
||
67 | * |
||
68 | * @return $this |
||
69 | */ |
||
70 | 1 | public function setLastName($lastName) |
|
76 | |||
77 | /** |
||
78 | * Set the user's nickname. |
||
79 | * |
||
80 | * @param $nickname |
||
81 | * |
||
82 | * @return $this |
||
83 | */ |
||
84 | 1 | public function setNickname($nickname) |
|
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | 5 | protected function getRequiredFields($buildType = self::BUILD_FOR_CREATE) |
|
106 | } |
||
107 |