auto-patch 638-dev-dev01-2024-05-14T20_44_36

This commit is contained in:
root
2024-05-14 20:44:36 +00:00
parent a941559057
commit 5dbb0b284e
1812 changed files with 29671 additions and 14588 deletions

View File

@@ -7,30 +7,25 @@ namespace Automattic\WooCommerce\Admin\RemoteInboxNotifications;
defined( 'ABSPATH' ) || exit;
use Automattic\WooCommerce\Admin\DeprecatedClassFacade;
/**
* Rule processor that fails.
*
* @deprecated 8.8.0
*/
class FailRuleProcessor implements RuleProcessorInterface {
class FailRuleProcessor extends DeprecatedClassFacade {
/**
* Fails the rule.
* The name of the non-deprecated class that this facade covers.
*
* @param object $rule The specific rule being processed by this rule processor.
* @param object $stored_state Stored state.
*
* @return bool Always false.
* @var string
*/
public function process( $rule, $stored_state ) {
return false;
}
protected static $facade_over_classname = 'Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors\FailRuleProcessor';
/**
* Validates the rule.
* The version that this class was deprecated in.
*
* @param object $rule The rule to validate.
*
* @return bool Pass/fail.
* @var string
*/
public function validate( $rule ) {
return true;
}
protected static $deprecated_in_version = '8.8.0';
}