Automattic\WooCommerce\Admin\RemoteInboxNotifications
RuleProcessorInterface{}
Deprecated since 9.4.0. It is no longer supported and may be removed in future releases. Use
\Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\RuleProcessorInterface instead.Rule processor interface
No Hooks.
Usage
$RuleProcessorInterface = new RuleProcessorInterface(); // use class methods
Methods
- public process( $rule, $stored_state )
- public validate( $rule )
- ERROR: no method name found on line `* @param object $stored_state Stored state.`
- ERROR: no method name found on line `* @param object $rule The rule to validate.`
Changelog
| Deprecated since 9.4.0 | Use \Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\RuleProcessorInterface instead. |
RuleProcessorInterface{} RuleProcessorInterface{} code WC 10.7.0
interface RuleProcessorInterface {
/**
* Processes a rule, returning the boolean result of the processing.
*
* @param object $rule The rule to process.
* @param object $stored_state Stored state.
*
* @return bool The result of the processing.
*/
public function process( $rule, $stored_state );
/**
* Validates the rule.
*
* @param object $rule The rule to validate.
*
* @return bool Pass/fail.
*/
public function validate( $rule );
}