original_string: public function setReturnType($type) {
  
          if ( !in_array($type, self::$rpcvalues) ) throw new InvalidArgumentException("Invalid RpcMethod return type");
  
          $this->signatures[$this->current_signature]["RETURNTYPE"] = self::$rpcvalues[$type];
  
          return $this;
  
      }
code: public function setReturnType($type) {
  
          if ( !in_array($type, self::$rpcvalues) ) throw new InvalidArgumentException("Invalid RpcMethod return type");
  
          $this->signatures[$this->current_signature]["RETURNTYPE"] = self::$rpcvalues[$type];
  
          return $this;
  
      }
code_tokens: public function setReturnType ( $ type ) { if ( ! in_array ( $ type , self :: $ rpcvalues ) ) throw new InvalidArgumentException ( "Invalid RpcMethod return type" ) ; $ this -> signatures [ $ this -> current_signature ] [ "RETURNTYPE" ] = self :: $ rpcvalues [ $ type ] ; return $ this ; }
docstring: Set the current signature's return type
  
  @param string $type
  
  @return self
  @throws InvalidArgumentException
docstring_tokens: Set the current signature s return type