private function setAuthority(): ?string
    {
        $authority = null;
        if (null !== $this->user_info) {
            $authority = $this->user_info.'@';
        }

        if (null !== $this->host) {
            $authority .= $this->host;
        }

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

        return $authority;
    }
private function setAuthority(): ?string
    {
        $authority = null;
        if (null !== $this->user_info) {
            $authority = $this->user_info.'@';
        }

        if (null !== $this->host) {
            $authority .= $this->host;
        }

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

        return $authority;
    }
private function setAuthority ( ) : ? string { $ authority = null ; if ( null !== $ this -> user_info ) { $ authority = $ this -> user_info . '@' ; } if ( null !== $ this -> host ) { $ authority .= $ this -> host ; } if ( null !== $ this -> port ) { $ authority .= ':' . $ this -> port ; } return $ authority ; }
Generate the URI authority part.
Generate the URI authority part .