Automattic\WooCommerce\Admin\RemoteInboxNotifications

IsEcommerceRuleProcessor::validate()publicWC 1.0

Validate the rule.

Method of the class: IsEcommerceRuleProcessor{}

No Hooks.

Return

true|false. Pass/fail.

Usage

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

IsEcommerceRuleProcessor::validate() code WC 7.1.0

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

	return true;
}