public function updateUserPasswordWithId($id, Password $userNewPassword) { return $this->connection->query("UPDATE users SET hashedPassword = '******' WHERE id = '" . $id . "'"); }
public function __construct($userNickName, Password $password) { $this->userNickName = $userNickName; $this->hashedPassword = $password->md5Hash(); }