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
- $rule_evaluator : RuleEvaluator
- The rule evaluator to use.
- __construct() : mixed
- Constructor.
- process() : bool
- Evaluates the rules in the operand and negates the result.
- validate() : bool
- Validates the rule.
Properties
$rule_evaluator
The rule evaluator to use.
protected
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()
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
bool — The result of the operation.validate()
Validates the rule.
public
validate(object $rule) : bool
Parameters
- $rule : object
-
The rule to validate.