WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishBeforeTimeRuleProcessor::process() public WC 1.0

Process the rule.

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

No Hooks.

Return

true|false. Whether the rule passes or not.

Usage

$PublishBeforeTimeRuleProcessor = new PublishBeforeTimeRuleProcessor();
$PublishBeforeTimeRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The specific rule being processed by this rule processor.
$stored_state(object) (required)
Stored state.

Code of PublishBeforeTimeRuleProcessor::process() WC 5.3.0

<?php
public function process( $rule, $stored_state ) {
	return $this->date_time_provider->get_now() <= new \DateTime( $rule->publish_before );
}