WooCommerce Code Reference

OrRuleProcessor
in package
implements RuleProcessorInterface

Rule processor that performs an OR operation on the rule's left and right operands.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

$rule_evaluator  : RuleEvaluator
Rule evaluator to use.
__construct()  : mixed
Constructor.
process()  : bool
Performs an OR operation on the rule's left and right operands.
validate()  : bool
Validates the rule.

Properties

Methods

process()

Performs an OR operation on the rule's left and right operands.

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.