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