private function getServerString(): string
    {
        return \sprintf(
            '{%s%s%s}',
            $this->hostname,
            '' !== $this->port ? ':' . $this->port : '',
            $this->flags
        );
    }
private function getServerString(): string
    {
        return \sprintf(
            '{%s%s%s}',
            $this->hostname,
            '' !== $this->port ? ':' . $this->port : '',
            $this->flags
        );
    }
private function getServerString ( ) : string { return \ sprintf ( '{%s%s%s}' , $ this -> hostname , '' !== $ this -> port ? ':' . $ this -> port : '' , $ this -> flags ) ; }
Glues hostname, port and flags and returns result.

@return string
Glues hostname port and flags and returns result .