@@ -139,6 +139,9 @@ |
||
139 | 139 | $this->confirmEmail = $confirmEmail; |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $password |
|
144 | + */ |
|
142 | 145 | public function setPassword($password, $confirmPassword = null) { |
143 | 146 | $this->password = $password; |
144 | 147 | $this->confirmPassword = $confirmPassword; |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * Retorna true se já existe este email no sistema |
112 | - * @return boolean |
|
112 | + * @return integer |
|
113 | 113 | */ |
114 | 114 | public function emailIsUsed() { |
115 | 115 | return $this->numRows(['email = ?' => $this->obj->getEmail(), 'person_id <> ?' => $this->obj->id]); |
@@ -41,6 +41,9 @@ |
||
41 | 41 | return (boolean) $this->year == 0; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @return string |
|
46 | + */ |
|
44 | 47 | public function getMonthName() { |
45 | 48 | return self::$monthNames[(int) $this->month]; |
46 | 49 | } |