/**
  * Logins user by provided user id.
  *
  * @param integer $userId
  */
 public function login($userId)
 {
     $this->userId = $userId;
     $this->token = $this->service->addTokenForUser($this->userId);
 }