WordPress at a glance
class is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

FailRuleProcessor{} WC 1.0

Rule processor that fails.

No Hooks.

Return

null. Nothing.

Usage

$FailRuleProcessor = new FailRuleProcessor();
// use class methods

Methods

  1. process( $rule, $stored_state )
  2. validate( $rule )

Code of FailRuleProcessor{} WC 5.3.0

<?php
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;
	}
}