public function make()
    {
        $authority = $this->host;

        $fragment = $this->fragment;

        $query = $this->query;

        if ($this->host !== '' && $this->user !== null)
        {
            $user = $this->user;

            if ($this->pass)
            {
                $user = $this->user . ':' . $this->pass;
            }

            $authority = $user . '@' . $authority;

            $authority = $authority . ':' . $this->port;
        }

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

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

        return new Uri($this->scheme . '://' . $authority . $this->path . $query . $fragment);
    }
public function make()
    {
        $authority = $this->host;

        $fragment = $this->fragment;

        $query = $this->query;

        if ($this->host !== '' && $this->user !== null)
        {
            $user = $this->user;

            if ($this->pass)
            {
                $user = $this->user . ':' . $this->pass;
            }

            $authority = $user . '@' . $authority;

            $authority = $authority . ':' . $this->port;
        }

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

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

        return new Uri($this->scheme . '://' . $authority . $this->path . $query . $fragment);
    }
public function make ( ) { $ authority = $ this -> host ; $ fragment = $ this -> fragment ; $ query = $ this -> query ; if ( $ this -> host !== '' && $ this -> user !== null ) { $ user = $ this -> user ; if ( $ this -> pass ) { $ user = $ this -> user . ':' . $ this -> pass ; } $ authority = $ user . '@' . $ authority ; $ authority = $ authority . ':' . $ this -> port ; } if ( $ query ) { $ query = '?' . $ query ; } if ( $ fragment ) { $ fragment = '#' . $ fragment ; } return new Uri ( $ this -> scheme . '://' . $ authority . $ this -> path . $ query . $ fragment ) ; }
Creates the URI instance.

@return \Zapheus\Http\Message\UriInterface
Creates the URI instance .