GetRuleProcessorForContext
in package
A custom GetRuleProcessor class to support context_vars and context_plugins rule types.
GetRuleProcessor class.
Table of Contents
- $context : array<string|int, mixed>
- Contains the context variables.
- __construct() : mixed
- Constructor.
- get_processor() : RuleProcessorInterface
- Get the processor for the specified rule type.
Properties
$context
Contains the context variables.
protected
array<string|int, mixed>
$context
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $context = array() ]) : mixed
Parameters
- $context : array<string|int, mixed> = array()
-
The context variables.
Return values
mixed —get_processor()
Get the processor for the specified rule type.
public
get_processor(string $rule_type) : RuleProcessorInterface
Parameters
- $rule_type : string
-
The rule type.