public function setUri($scheme, $host, $port = null, $path = '/', $query = '', $fragment = '', $user = '', $password = '')
    {
        $this->scheme = $this->filterScheme($scheme);
        $this->host = $host;
        $this->port = $this->filterPort($port);
        $this->path = empty($path) ? '/' : $this->filterQuery($path);
        $this->query = $this->filterQuery($query);
        $this->fragment = $this->filterQuery($fragment);
        $this->user = $user;
        $this->password = $password;

        return $this;
    }
public function setUri($scheme, $host, $port = null, $path = '/', $query = '', $fragment = '', $user = '', $password = '')
    {
        $this->scheme = $this->filterScheme($scheme);
        $this->host = $host;
        $this->port = $this->filterPort($port);
        $this->path = empty($path) ? '/' : $this->filterQuery($path);
        $this->query = $this->filterQuery($query);
        $this->fragment = $this->filterQuery($fragment);
        $this->user = $user;
        $this->password = $password;

        return $this;
    }
public function setUri ( $ scheme , $ host , $ port = null , $ path = '/' , $ query = '' , $ fragment = '' , $ user = '' , $ password = '' ) { $ this -> scheme = $ this -> filterScheme ( $ scheme ) ; $ this -> host = $ host ; $ this -> port = $ this -> filterPort ( $ port ) ; $ this -> path = empty ( $ path ) ? '/' : $ this -> filterQuery ( $ path ) ; $ this -> query = $ this -> filterQuery ( $ query ) ; $ this -> fragment = $ this -> filterQuery ( $ fragment ) ; $ this -> user = $ user ; $ this -> password = $ password ; return $ this ; }
Set the Uri.

@param (string) $url valid url
(string) $host valid host
(int) $port valid port number
(string) $path valid path
(string) $query query URI
(string) $fragment fragment
(string) $user username
(string) $password password

@since 3.0.0

@return object
Set the Uri .