public function getAuthority()
    {
        $authority = null;

        if (null !== $this->host) {

            if (null !== $this->userinfo) {
                $authority .= $this->userinfo . '@';
            }
            $authority .= $this->host;
            if (null !== $this->port) {
                $authority .= ':' . $this->port;
            }
        }

        return $authority;
    }
public function getAuthority()
    {
        $authority = null;

        if (null !== $this->host) {

            if (null !== $this->userinfo) {
                $authority .= $this->userinfo . '@';
            }
            $authority .= $this->host;
            if (null !== $this->port) {
                $authority .= ':' . $this->port;
            }
        }

        return $authority;
    }
public function getAuthority ( ) { $ authority = null ; if ( null !== $ this -> host ) { if ( null !== $ this -> userinfo ) { $ authority .= $ this -> userinfo . '@' ; } $ authority .= $ this -> host ; if ( null !== $ this -> port ) { $ authority .= ':' . $ this -> port ; } } return $ authority ; }
Get the authority

@return string|null Returns the authority or null if not set.
Get the authority