Automattic\WooCommerce\Admin\RemoteInboxNotifications

NotRuleProcessor::process()publicWC 1.0

Evaluates the rules in the operand and negates the result.

Метод класса: NotRuleProcessor{}

Хуков нет.

Возвращает

true|false. The result of the operation.

Использование

$NotRuleProcessor = new NotRuleProcessor();
$NotRuleProcessor->process( $rule, $stored_state );
$rule(объект) (обязательный)
The specific rule being processed by this rule processor.
$stored_state(объект) (обязательный)
Stored state.

Код NotRuleProcessor::process() WC 8.7.0

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

	return ! $evaluated_operand;
}