Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors
NotRuleProcessor::process
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() NotRuleProcessor::process WC 10.9.4
public function process( $rule, $stored_state ) {
$evaluated_operand = $this->rule_evaluator->evaluate(
$rule->operand,
$stored_state
);
return ! $evaluated_operand;
}