original_string: public function setObject($object)
      {
          if ( ! is_object($object))
          {
              throw new InvalidArgumentException(
                  'Expected an object, but got '.gettype($object)
              );
          }
  
          $this->object = new ReflectionClass($object);
      }
code: public function setObject($object)
      {
          if ( ! is_object($object))
          {
              throw new InvalidArgumentException(
                  'Expected an object, but got '.gettype($object)
              );
          }
  
          $this->object = new ReflectionClass($object);
      }
code_tokens: public function setObject ( $ object ) { if ( ! is_object ( $ object ) ) { throw new InvalidArgumentException ( 'Expected an object, but got ' . gettype ( $ object ) ) ; } $ this -> object = new ReflectionClass ( $ object ) ; }
docstring: Set the object you want to work with.
  
  @throws InvalidArgumentException
  @param mixed $object
  @return void
docstring_tokens: Set the object you want to work with .