public function getDisplayAddress(): ?string
    {
        if ('0.0.0.0' !== $this->getHostname()) {
            return null;
        }

        if (false === $localHostname = \gethostname()) {
            return null;
        }

        return \gethostbyname($localHostname) . ':' . $this->getPort();
    }
public function getDisplayAddress(): ?string
    {
        if ('0.0.0.0' !== $this->getHostname()) {
            return null;
        }

        if (false === $localHostname = \gethostname()) {
            return null;
        }

        return \gethostbyname($localHostname) . ':' . $this->getPort();
    }
public function getDisplayAddress ( ) : ? string { if ( '0.0.0.0' !== $ this -> getHostname ( ) ) { return null ; } if ( false === $ localHostname = \ gethostname ( ) ) { return null ; } return \ gethostbyname ( $ localHostname ) . ':' . $ this -> getPort ( ) ; }
Contains resolved hostname if available.

@return null|string
Contains resolved hostname if available .