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
$rule_evaluator
Rule evaluator to use.
private
RuleEvaluator
$rule_evaluator
Methods
__construct()
Constructor.
public
__construct([RuleEvaluator $rule_evaluator = null ]) : mixed
Parameters
- $rule_evaluator : RuleEvaluator = null
-
The rule evaluator to use.
Return values
mixed —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
bool — The result of the operation.validate()
Validates the rule.
public
validate(object $rule) : bool
Parameters
- $rule : object
-
The rule to validate.