PluginProbe
WooCommerce / 11.1.0
WooCommerce v11.1.0
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / src / Admin / RemoteSpecs / RuleProcessors / FailRuleProcessor.php
FailRuleProcessor.php
37 lines 691 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Rule processor that fails.
4 */
5
6 namespace Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors;
7
8 defined( 'ABSPATH' ) || exit;
9
10 /**
11 * Rule processor that fails.
12 */
13 class FailRuleProcessor implements RuleProcessorInterface {
14 /**
15 * Fails the rule.
16 *
17 * @param object $rule The specific rule being processed by this rule processor.
18 * @param object $stored_state Stored state.
19 *
20 * @return bool Always false.
21 */
22 public function process( $rule, $stored_state ) {
23 return false;
24 }
25
26 /**
27 * Validates the rule.
28 *
29 * @param object $rule The rule to validate.
30 *
31 * @return bool Pass/fail.
32 */
33 public function validate( $rule ) {
34 return true;
35 }
36 }
37