private function getUriString(
        ?string $scheme,
        ?string $authority,
        string $path,
        ?string $query,
        ?string $fragment
    ): string {
        if (null !== $scheme) {
            $scheme = $scheme.':';
        }

        if (null !== $authority) {
            $authority = '//'.$authority;
        }

        if (null !== $query) {
            $query = '?'.$query;
        }

        if (null !== $fragment) {
            $fragment = '#'.$fragment;
        }

        return $scheme.$authority.$path.$query.$fragment;
    }
private function getUriString(
        ?string $scheme,
        ?string $authority,
        string $path,
        ?string $query,
        ?string $fragment
    ): string {
        if (null !== $scheme) {
            $scheme = $scheme.':';
        }

        if (null !== $authority) {
            $authority = '//'.$authority;
        }

        if (null !== $query) {
            $query = '?'.$query;
        }

        if (null !== $fragment) {
            $fragment = '#'.$fragment;
        }

        return $scheme.$authority.$path.$query.$fragment;
    }
private function getUriString ( ? string $ scheme , ? string $ authority , string $ path , ? string $ query , ? string $ fragment ) : string { if ( null !== $ scheme ) { $ scheme = $ scheme . ':' ; } if ( null !== $ authority ) { $ authority = '//' . $ authority ; } if ( null !== $ query ) { $ query = '?' . $ query ; } if ( null !== $ fragment ) { $ fragment = '#' . $ fragment ; } return $ scheme . $ authority . $ path . $ query . $ fragment ; }
Generate the URI string representation from its components.

@see https://tools.ietf.org/html/rfc3986#section-5.3
@param ?string $scheme
@param ?string $authority
@param ?string $query
@param ?string $fragment
Generate the URI string representation from its components .