Automattic\WooCommerce\Admin\RemoteInboxNotifications

NotRuleProcessor::validate()publicWC 1.0

Validates the rule.

Method of the class: NotRuleProcessor{}

No Hooks.

Return

true|false. Pass/fail.

Usage

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

NotRuleProcessor::validate() code WC 8.7.0

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

	return true;
}