Transformers
1 year ago
BaseLocationCountryRuleProcessor.php
2 years ago
BaseLocationStateRuleProcessor.php
2 years ago
ComparisonOperation.php
2 years ago
ContextPluginsRuleProcessor.php
1 year ago
EvaluateAndGetStatus.php
2 years ago
EvaluateOverrides.php
1 year ago
EvaluationLogger.php
1 year ago
FailRuleProcessor.php
2 years ago
GetRuleProcessor.php
2 years ago
GetRuleProcessorForContext.php
1 year ago
IsEcommerceRuleProcessor.php
2 years ago
IsWooExpressRuleProcessor.php
2 years ago
NotRuleProcessor.php
2 years ago
NoteStatusRuleProcessor.php
2 years ago
OnboardingProfileRuleProcessor.php
2 years ago
OptionRuleProcessor.php
2 years ago
OrRuleProcessor.php
2 years ago
OrderCountRuleProcessor.php
2 years ago
OrdersProvider.php
2 years ago
PassRuleProcessor.php
2 years ago
PluginVersionRuleProcessor.php
2 years ago
PluginsActivatedRuleProcessor.php
2 years ago
ProductCountRuleProcessor.php
1 year ago
PublishAfterTimeRuleProcessor.php
2 years ago
PublishBeforeTimeRuleProcessor.php
2 years ago
RuleEvaluator.php
1 year ago
RuleProcessorInterface.php
2 years ago
StoredStateRuleProcessor.php
2 years ago
StoredStateSetupForProducts.php
2 years ago
TotalPaymentsVolumeProcessor.php
1 year ago
WCAdminActiveForProvider.php
2 years ago
WCAdminActiveForRuleProcessor.php
2 years ago
WooCommerceAdminUpdatedRuleProcessor.php
2 years ago
PassRuleProcessor.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Rule processor that passes. This is required because an empty set of rules |
| 4 | * (or predicate) evaluates to false. |
| 5 | */ |
| 6 | |
| 7 | namespace Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors; |
| 8 | |
| 9 | defined( 'ABSPATH' ) || exit; |
| 10 | |
| 11 | /** |
| 12 | * Rule processor that passes. |
| 13 | */ |
| 14 | class PassRuleProcessor implements RuleProcessorInterface { |
| 15 | /** |
| 16 | * Passes the rule. |
| 17 | * |
| 18 | * @param object $rule The specific rule being processed by this rule processor. |
| 19 | * @param object $stored_state Stored state. |
| 20 | * |
| 21 | * @return bool Always true. |
| 22 | */ |
| 23 | public function process( $rule, $stored_state ) { |
| 24 | return true; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Validates the rule. |
| 29 | * |
| 30 | * @param object $rule The rule to validate. |
| 31 | * |
| 32 | * @return bool Pass/fail. |
| 33 | */ |
| 34 | public function validate( $rule ) { |
| 35 | return true; |
| 36 | } |
| 37 | } |
| 38 |