src/Url.php
public function getHostWithPort()
    {
        if ($this->hasPort() && (!$this->hasDefaultPort() || !$this->isPortDefault())) {
            return $this->getHost() . ':' . $this->getPort();
        } else {
            return $this->getHost();
        }
    }
public function getHostWithPort()
    {
        if ($this->hasPort() && (!$this->hasDefaultPort() || !$this->isPortDefault())) {
            return $this->getHost() . ':' . $this->getPort();
        } else {
            return $this->getHost();
        }
    }
public function getHostWithPort ( ) { if ( $ this -> hasPort ( ) && ( ! $ this -> hasDefaultPort ( ) || ! $ this -> isPortDefault ( ) ) ) { return $ this -> getHost ( ) . ':' . $ this -> getPort ( ) ; } else { return $ this -> getHost ( ) ; } }
Host, including port unless it is the default port for the scheme.
@return string
Host including port unless it is the default port for the scheme .