public function getSchemeHostPort(): string
    {
        $hostPort = $this->getHostPort();
        $scheme   = $this->getScheme();

        return $hostPort && $scheme ? $scheme . '://' . $hostPort : $hostPort;
    }
public function getSchemeHostPort(): string
    {
        $hostPort = $this->getHostPort();
        $scheme   = $this->getScheme();

        return $hostPort && $scheme ? $scheme . '://' . $hostPort : $hostPort;
    }
public function getSchemeHostPort ( ) : string { $ hostPort = $ this -> getHostPort ( ) ; $ scheme = $ this -> getScheme ( ) ; return $ hostPort && $ scheme ? $ scheme . '://' . $ hostPort : $ hostPort ; }
Retrieve the scheme, host, and port components of the URI.

If a scheme is present, a host is present, and a port is present,
and the port is non-standard for the current scheme, this method
MUST return the scheme, followed by the host, followed by the
port in a fashion akin to the following <scheme://host:port>.

If a scheme is present, a host is present, and a port is present,
and the port is standard for the current scheme, this method
MUST return only the scheme followed by the host, in a
fashion akin to the following <scheme://host>.

If a scheme is present, a host is present, and a port is not
present, this method MUST return only the scheme followed by
the host, in a fashion akin to the following <scheme://host>.

If a scheme is not present, a host is present, and a port is
present, this method MUST return only the host, followed by
the port, in a fashion akin to the following <host:port>.

If a scheme is not present, a host is present, and a port is
not present, this method MUST return only the host.

If a scheme is not present, a host is not present, and a port
is not present, this method MUST return an empty string.

If a scheme is present, a host is not present, and a port
is either present or not, this method MUST return an
empty string.

@return string
Retrieve the scheme host and port components of the URI .