private function changeState()

in src/Apache/Ignite/Internal/Connection/ClientFailoverSocket.php [110:119]


    private function changeState(int $state, ?string $endpoint = null): void
    {
        if (Logger::isDebug()) {
            Logger::logDebug(sprintf('Socket %s: %s -> %s',
                $endpoint ? $endpoint : ($this->socket ? $this->socket->getEndpoint() : ''),
                $this->getState($this->state),
                $this->getState($state)));
        }
        $this->state = $state;
    }