Automattic\WooCommerce\Admin\RemoteInboxNotifications

NotRuleProcessor::validate()publicWC 1.0

Validates the rule.

Метод класса: NotRuleProcessor{}

No Hooks.

Return

true|false. Pass/fail.

Usage

$NotRuleProcessor = new NotRuleProcessor();
$NotRuleProcessor->validate( $rule );
$rule(object) (required)
The rule to validate.

Код NotRuleProcessor::validate() WC 7.1.0

public function validate( $rule ) {
	if ( ! isset( $rule->operand ) ) {
		return false;
	}

	return true;
}