original_string: public function setUser($user)
      {
          if (!($user instanceof $this->userClassName)) {
              throw new \Parable\Framework\Exception("Invalid object provided, type {$this->userClassName} required.");
          }
          $this->user = $user;
          return $this;
      }
code: public function setUser($user)
      {
          if (!($user instanceof $this->userClassName)) {
              throw new \Parable\Framework\Exception("Invalid object provided, type {$this->userClassName} required.");
          }
          $this->user = $user;
          return $this;
      }
code_tokens: public function setUser ( $ user ) { if ( ! ( $ user instanceof $ this -> userClassName ) ) { throw new \ Parable \ Framework \ Exception ( "Invalid object provided, type {$this->userClassName} required." ) ; } $ this -> user = $ user ; return $ this ; }
docstring: Set the user and check whether it's of the right type.
  
  @param $user
  
  @return $this
  @throws \Parable\Framework\Exception
docstring_tokens: Set the user and check whether it s of the right type .