classes/Url.php
public function authority()
    {
        $userInfo = $this->username;
        if ($this->password) {
            $userInfo .= ':' . $this->password;
        }
        $port      = $this->port();
        $authority = $this->host;
        if ($authority && $userInfo) {
            $authority = $userInfo . '@' . $authority;
        }
        if ($authority && $port) {
            $authority .= ':' . $port;
        }

        return $authority;
    }
public function authority()
    {
        $userInfo = $this->username;
        if ($this->password) {
            $userInfo .= ':' . $this->password;
        }
        $port      = $this->port();
        $authority = $this->host;
        if ($authority && $userInfo) {
            $authority = $userInfo . '@' . $authority;
        }
        if ($authority && $port) {
            $authority .= ':' . $port;
        }

        return $authority;
    }
public function authority ( ) { $ userInfo = $ this -> username ; if ( $ this -> password ) { $ userInfo .= ':' . $ this -> password ; } $ port = $ this -> port ( ) ; $ authority = $ this -> host ; if ( $ authority && $ userInfo ) { $ authority = $ userInfo . '@' . $ authority ; } if ( $ authority && $ port ) { $ authority .= ':' . $ port ; } return $ authority ; }
Get authority component of the URL

@see https://tools.ietf.org/html/rfc3986#section-3.2
@return string Authority, in "[username[:password]@]host[:port]" format
Get authority component of the URL