code: public function setAuthenticated($v)
      {
          if (!$v) {
              $this->authenticator = null;
          }
          $this->authenticated = $v;
          return $this;
      }
docs: Sets user's authenticated state.
  @param bool $v
  @return $this