public __construct ( integer $userId = null, string $email = null ) | ||
$userId | integer | The id of the user. |
string | The e-mail address of the user. |
public function __construct($userId = null, $email = null)
{
if ($userId !== null) {
$this->loadUser((int) $userId);
}
if ($email !== null) {
$this->loadUserByEmail($email);
}
}