original_string: public function addParameter($type, $name) {
  
          if ( !in_array($type, self::$rpcvalues) ) throw new InvalidArgumentException("Invalid type for parameter $name");
  
          if ( empty($name) ) throw new InvalidArgumentException("Missing parameter name");
  
          $this->signatures[$this->current_signature]["PARAMETERS"][$name] = self::$rpcvalues[$type];
  
          return $this;
  
      }
code: public function addParameter($type, $name) {
  
          if ( !in_array($type, self::$rpcvalues) ) throw new InvalidArgumentException("Invalid type for parameter $name");
  
          if ( empty($name) ) throw new InvalidArgumentException("Missing parameter name");
  
          $this->signatures[$this->current_signature]["PARAMETERS"][$name] = self::$rpcvalues[$type];
  
          return $this;
  
      }
code_tokens: public function addParameter ( $ type , $ name ) { if ( ! in_array ( $ type , self :: $ rpcvalues ) ) throw new InvalidArgumentException ( "Invalid type for parameter $name" ) ; if ( empty ( $ name ) ) throw new InvalidArgumentException ( "Missing parameter name" ) ; $ this -> signatures [ $ this -> current_signature ] [ "PARAMETERS" ] [ $ name ] = self :: $ rpcvalues [ $ type ] ; return $ this ; }
docstring: Add a parameter to current signature
  
  @param string $type
  @param string $name
  
  @return self
  @throws InvalidArgumentException
docstring_tokens: Add a parameter to current signature