Automattic\WooCommerce\Admin\RemoteInboxNotifications

PublishBeforeTimeRuleProcessor::__construct()publicWC 1.0

Constructor.

{} Это метод класса: PublishBeforeTimeRuleProcessor{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$PublishBeforeTimeRuleProcessor = new PublishBeforeTimeRuleProcessor();
$PublishBeforeTimeRuleProcessor->__construct( $date_time_provider );
$date_time_provider(DateTimeProviderInterface)
The DateTime provider.
По умолчанию: null

Код PublishBeforeTimeRuleProcessor::__construct() WC 6.4.1

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