@@ -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; |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | /** @return boolean retorna TRUE se está bloqueado por tentativas de login */ |
| 199 | 199 | public function isLocked() { |
| 200 | 200 | $diff = $this->getLoginUnlockDate()->diff(new Date()); |
| 201 | - return (boolean) ($diff > 0 ); |
|
| 201 | + return (boolean) ($diff > 0); |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /** @return int total de tentativas restantes até ser bloqueado */ |
@@ -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 | } |