Automattic\WooCommerce\Admin\RemoteInboxNotifications

NotRuleProcessor::process()publicWC 1.0

Evaluates the rules in the operand and negates the result.

Method of the class: NotRuleProcessor{}

No Hooks.

Return

true|false. The result of the operation.

Usage

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

NotRuleProcessor::process() code WC 8.7.0

public function process( $rule, $stored_state ) {
	$evaluated_operand = $this->rule_evaluator->evaluate(
		$rule->operand,
		$stored_state
	);

	return ! $evaluated_operand;
}