PublishBeforeTimeRuleProcessor
in package
implements
RuleProcessorInterface
Rule processor for sending before a specified date/time.
Interfaces, Classes and Traits
- RuleProcessorInterface
- Rule processor interface
Table of Contents
- $date_time_provider : DateTimeProviderInterface
- The DateTime provider.
- __construct() : mixed
- Constructor.
- process() : bool
- Process the rule.
- validate() : bool
- Validates the rule.
Properties
$date_time_provider
The DateTime provider.
protected
DateTimeProviderInterface
$date_time_provider
Methods
__construct()
Constructor.
public
__construct([DateTimeProviderInterface $date_time_provider = null ]) : mixed
Parameters
- $date_time_provider : DateTimeProviderInterface = null
-
The DateTime provider.
Return values
mixed —process()
Process the rule.
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 — Whether the rule passes or not.validate()
Validates the rule.
public
validate(object $rule) : bool
Parameters
- $rule : object
-
The rule to validate.