Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors
TotalPaymentsVolumeProcessor::__construct
Constructor.
Method of the class: TotalPaymentsVolumeProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
$TotalPaymentsVolumeProcessor = new TotalPaymentsVolumeProcessor(); $TotalPaymentsVolumeProcessor->__construct( $date_time_provider );
- $date_time_provider(DateTimeProviderInterface|null)
- The DateTime provider.
Default:null
TotalPaymentsVolumeProcessor::__construct() TotalPaymentsVolumeProcessor:: construct code WC 11.2.1
public function __construct( $date_time_provider = null ) {
$this->date_time_provider = null === $date_time_provider
? new CurrentDateTimeProvider()
: $date_time_provider;
}