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;

    }
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;

    }
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 ; }
Set the current signature's return type

@param string $type

@return self
@throws InvalidArgumentException
Set the current signature s return type