• File: FailRuleProcessor.php
  • Full Path: /var/www/trendyshoppers.co.uk/public_html/wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/FailRuleProcessor.php
  • Date Modified: 03/03/2026 5:22 AM
  • File size: 691 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Rule processor that fails.
 */

namespace Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors;

defined( 'ABSPATH' ) || exit;

/**
 * Rule processor that fails.
 */
class FailRuleProcessor implements RuleProcessorInterface {
	/**
	 * Fails the rule.
	 *
	 * @param object $rule         The specific rule being processed by this rule processor.
	 * @param object $stored_state Stored state.
	 *
	 * @return bool Always false.
	 */
	public function process( $rule, $stored_state ) {
		return false;
	}

	/**
	 * Validates the rule.
	 *
	 * @param object $rule The rule to validate.
	 *
	 * @return bool Pass/fail.
	 */
	public function validate( $rule ) {
		return true;
	}
}