Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors

TotalPaymentsVolumeProcessor::__construct │ public │ WC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

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

Код TotalPaymentsVolumeProcessor::__construct() WC 11.2.2

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