WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

NoteStatusRuleProcessor::validate() public WC 1.0

Validates the rule.

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

No Hooks.

Return

true|false. Pass/fail.

Usage

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

Code of NoteStatusRuleProcessor::validate() WC 5.3.0

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

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

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

	return true;
}