Amp\Artax\Uri::reconstitute PHP Method

reconstitute() private method

private reconstitute ( $scheme, $authority, $path, $query, $fragment )
    private function reconstitute($scheme, $authority, $path, $query, $fragment)
    {
        $result = '';
        if ($scheme) {
            $result .= $scheme . ':';
        }
        if ($authority) {
            $result .= '//';
            $result .= $authority;
        }
        $result .= $path;
        if ($query) {
            $result .= '?';
            $result .= $query;
        }
        if ($fragment) {
            $result .= '#';
            $result .= $fragment;
        }
        return $result;
    }