public function formatData(string $interface, string $version, string $method, array $params): array
    {
        return [
            'interface' => $interface,
            'version' => $version,
            'method' => $method,
            'params' => $params,
            'logid' => RequestContext::getLogid(),
            'spanid' => RequestContext::getSpanid() + 1,
        ];
    }
public function formatData(string $interface, string $version, string $method, array $params): array
    {
        return [
            'interface' => $interface,
            'version' => $version,
            'method' => $method,
            'params' => $params,
            'logid' => RequestContext::getLogid(),
            'spanid' => RequestContext::getSpanid() + 1,
        ];
    }
public function formatData ( string $ interface , string $ version , string $ method , array $ params ) : array { return [ 'interface' => $ interface , 'version' => $ version , 'method' => $ method , 'params' => $ params , 'logid' => RequestContext :: getLogid ( ) , 'spanid' => RequestContext :: getSpanid ( ) + 1 , ] ; }
Format the data for packer

@param string $interface
@param string $version
@param string $method
@param array $params
@return array
Format the data for packer