public function setPath($path)
    {
        $url = parse_url($path);

        $this->path = $url['path'];
        if (isset($url['host'])) {
            $this->setHost($url['host']);
        }

        if (isset($url['query'])) {
            $this->setQuery($url['query']);
        }
        return $this;
    }
public function setPath($path)
    {
        $url = parse_url($path);

        $this->path = $url['path'];
        if (isset($url['host'])) {
            $this->setHost($url['host']);
        }

        if (isset($url['query'])) {
            $this->setQuery($url['query']);
        }
        return $this;
    }
public function setPath ( $ path ) { $ url = parse_url ( $ path ) ; $ this -> path = $ url [ 'path' ] ; if ( isset ( $ url [ 'host' ] ) ) { $ this -> setHost ( $ url [ 'host' ] ) ; } if ( isset ( $ url [ 'query' ] ) ) { $ this -> setQuery ( $ url [ 'query' ] ) ; } return $ this ; }
Set request path

@param mixed $path
@return $this
Set request path