public static function factory(
        array $query = [],
        array $request = [],
        array $attributes = [],
        array $cookies = [],
        array $files = [],
        array $server = [],
        $content = null
    ): Request {
        return new static(
            $query,
            $request,
            $attributes,
            $cookies,
            $files,
            $server,
            $content
        );
    }
public static function factory(
        array $query = [],
        array $request = [],
        array $attributes = [],
        array $cookies = [],
        array $files = [],
        array $server = [],
        $content = null
    ): Request {
        return new static(
            $query,
            $request,
            $attributes,
            $cookies,
            $files,
            $server,
            $content
        );
    }
public static function factory ( array $ query = [ ] , array $ request = [ ] , array $ attributes = [ ] , array $ cookies = [ ] , array $ files = [ ] , array $ server = [ ] , $ content = null ) : Request { return new static ( $ query , $ request , $ attributes , $ cookies , $ files , $ server , $ content ) ; }
Create a new Request instance.

@param array           $query      The GET parameters
@param array           $request    The POST parameters
@param array           $attributes The request attributes (parameters
parsed from the PATH_INFO, ...)
@param array           $cookies    The COOKIE parameters
@param array           $files      The FILES parameters
@param array           $server     The SERVER parameters
@param string|resource $content    The raw body data

@return \Valkyrja\Http\Request
Create a new Request instance .