WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

WCAdminActiveForRuleProcessor::validate() public WC 1.0

Validates the rule.

{} It's a method of the class: WCAdminActiveForRuleProcessor{}

No Hooks.

Return

true|false. Pass/fail.

Usage

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

Code of WCAdminActiveForRuleProcessor::validate() WC 5.2.2

<?php
public function validate( $rule ) {
	if ( ! isset( $rule->days ) ) {
		return false;
	}

	if ( ! isset( $rule->operation ) ) {
		return false;
	}

	return true;
}