WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

BaseLocationStateRuleProcessor::process() public WC 1.0

Performs a comparison operation against the base location - state.

{} It's a method of the class: BaseLocationStateRuleProcessor{}

No Hooks.

Return

true|false. The result of the operation.

Usage

$BaseLocationStateRuleProcessor = new BaseLocationStateRuleProcessor();
$BaseLocationStateRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The specific rule being processed by this rule processor.
$stored_state(object) (required)
Stored state.

Code of BaseLocationStateRuleProcessor::process() WC 5.2.2

<?php
public function process( $rule, $stored_state ) {
	$base_location = wc_get_base_location();
	if ( ! $base_location ) {
		return false;
	}

	return ComparisonOperation::compare(
		$base_location['state'],
		$rule->value,
		$rule->operation
	);
}