Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishAfterTimeRuleProcessor::__construct()publicWC 1.0

Constructor.

Метод класса: PublishAfterTimeRuleProcessor{}

No Hooks.

Return

null. Nothing.

Usage

$PublishAfterTimeRuleProcessor = new PublishAfterTimeRuleProcessor();
$PublishAfterTimeRuleProcessor->__construct( $date_time_provider );
$date_time_provider(DateTimeProviderInterface)
The DateTime provider.
Default: null

Code of PublishAfterTimeRuleProcessor::__construct() WC 7.1.0

public function __construct( $date_time_provider = null ) {
	$this->date_time_provider = null === $date_time_provider
		? new CurrentDateTimeProvider()
		: $date_time_provider;
}