Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors

PublishBeforeTimeRuleProcessor::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код PublishBeforeTimeRuleProcessor::__construct() WC 8.9.0

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