WooCommerce Code Reference

NotRuleProcessor
in package
implements RuleProcessorInterface

Rule processor that negates the rules in the rule's operand.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

__construct()  : mixed
Constructor.
process()  : bool
Evaluates the rules in the operand and negates the result.
validate()  : bool
Validates the rule.

Methods

process()

Evaluates the rules in the operand and negates the result.

public process(object $rule, object $stored_state) : bool
Parameters
$rule : object

The specific rule being processed by this rule processor.

$stored_state : object

Stored state.

Return values
boolThe result of the operation.