private function isResumableError(RuntimeException $exception)
    {
        if ($exception instanceof ConnectionException) {
            return true;
        }

        if ( ! $exception instanceof ServerException) {
            return false;
        }

        if (in_array($exception->getCode(), [self::$errorCodeCappedPositionLost, self::$errorCodeCursorKilled, self::$errorCodeInterrupted])) {
            return false;
        }

        return true;
    }
private function isResumableError(RuntimeException $exception)
    {
        if ($exception instanceof ConnectionException) {
            return true;
        }

        if ( ! $exception instanceof ServerException) {
            return false;
        }

        if (in_array($exception->getCode(), [self::$errorCodeCappedPositionLost, self::$errorCodeCursorKilled, self::$errorCodeInterrupted])) {
            return false;
        }

        return true;
    }
private function isResumableError ( RuntimeException $ exception ) { if ( $ exception instanceof ConnectionException ) { return true ; } if ( ! $ exception instanceof ServerException ) { return false ; } if ( in_array ( $ exception -> getCode ( ) , [ self :: $ errorCodeCappedPositionLost , self :: $ errorCodeCursorKilled , self :: $ errorCodeInterrupted ] ) ) { return false ; } return true ; }
Determines if an exception is a resumable error.

@see https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#resumable-error
@param RuntimeException $exception
@return boolean
Determines if an exception is a resumable error .