RemoteInboxNotificationsDataSourcePoller.php
2 months ago
RemoteInboxNotificationsEngine.php
1 year ago
RuleProcessorInterface.php
1 year ago
SpecRunner.php
4 weeks ago
TransformerInterface.php
1 year ago
RuleProcessorInterface.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Interface for a rule processor. |
| 4 | * |
| 5 | * @deprecated 9.4.0 Use \Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\RuleProcessorInterface instead. |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\WooCommerce\Admin\RemoteInboxNotifications; |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | /** |
| 13 | * Rule processor interface |
| 14 | * |
| 15 | * @deprecated 9.4.0 Use \Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\RuleProcessorInterface instead. |
| 16 | */ |
| 17 | interface RuleProcessorInterface { |
| 18 | /** |
| 19 | * Processes a rule, returning the boolean result of the processing. |
| 20 | * |
| 21 | * @param object $rule The rule to process. |
| 22 | * @param object $stored_state Stored state. |
| 23 | * |
| 24 | * @return bool The result of the processing. |
| 25 | */ |
| 26 | public function process( $rule, $stored_state ); |
| 27 | |
| 28 | /** |
| 29 | * Validates the rule. |
| 30 | * |
| 31 | * @param object $rule The rule to validate. |
| 32 | * |
| 33 | * @return bool Pass/fail. |
| 34 | */ |
| 35 | public function validate( $rule ); |
| 36 | } |
| 37 |