public function getAuthority()
    {
        return ($this->getUserInfo() !== '') ? $this->getUserInfo().
        '@' : ''.$this->getHost().($this->getPort() !== '') ? ':'.$this->getPort() : '';
    }
public function getAuthority()
    {
        return ($this->getUserInfo() !== '') ? $this->getUserInfo().
        '@' : ''.$this->getHost().($this->getPort() !== '') ? ':'.$this->getPort() : '';
    }
public function getAuthority ( ) { return ( $ this -> getUserInfo ( ) !== '' ) ? $ this -> getUserInfo ( ) . '@' : '' . $ this -> getHost ( ) . ( $ this -> getPort ( ) !== '' ) ? ':' . $ this -> getPort ( ) : '' ; }
Get the authority component of the URL.

@since 3.0.0

@return string
Get the authority component of the URL .