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