protected function setConnStatus($status)
    {
        $this->connStatus = $status;
        $map = [
            static::CONNECTION_BAD => static::CLIENT_POOL_STATE_CLOSING,
            static::CONNECTION_CLOSED => static::CLIENT_POOL_STATE_CLOSING,
            static::CONNECTION_OK => static::CLIENT_POOL_STATE_READY,
        ];
        if (isset($map[$status])) {
            $this->changeState($map[$status]);
        }
    }
protected function setConnStatus($status)
    {
        $this->connStatus = $status;
        $map = [
            static::CONNECTION_BAD => static::CLIENT_POOL_STATE_CLOSING,
            static::CONNECTION_CLOSED => static::CLIENT_POOL_STATE_CLOSING,
            static::CONNECTION_OK => static::CLIENT_POOL_STATE_READY,
        ];
        if (isset($map[$status])) {
            $this->changeState($map[$status]);
        }
    }
protected function setConnStatus ( $ status ) { $ this -> connStatus = $ status ; $ map = [ static :: CONNECTION_BAD => static :: CLIENT_POOL_STATE_CLOSING , static :: CONNECTION_CLOSED => static :: CLIENT_POOL_STATE_CLOSING , static :: CONNECTION_OK => static :: CLIENT_POOL_STATE_READY , ] ; if ( isset ( $ map [ $ status ] ) ) { $ this -> changeState ( $ map [ $ status ] ) ; } }
Set connection status
@param int $status
Set connection status