public function getUrlForHost($host)
    {
        $newUrl = clone $this;
        $newUrl->_fragments['host'] = $host;
        $newUrl->_inputString = $newUrl->__toString();

        return $newUrl;
    }
public function getUrlForHost($host)
    {
        $newUrl = clone $this;
        $newUrl->_fragments['host'] = $host;
        $newUrl->_inputString = $newUrl->__toString();

        return $newUrl;
    }
public function getUrlForHost ( $ host ) { $ newUrl = clone $ this ; $ newUrl -> _fragments [ 'host' ] = $ host ; $ newUrl -> _inputString = $ newUrl -> __toString ( ) ; return $ newUrl ; }
Builds a URL with a different host
@return Url
Builds a URL with a different host