Automattic\WooCommerce\Internal\DataStores\Orders

LegacyDataCleanup::init()publicWC 1.0

Class initialization, invoked by the DI container.

Method of the class: LegacyDataCleanup{}

No Hooks.

Return

null. Nothing (null).

Usage

$LegacyDataCleanup = new LegacyDataCleanup();
$LegacyDataCleanup->init( $batch_processing, $legacy_handler, $data_synchronizer );
$batch_processing(BatchProcessingController) (required)
The batch processing controller to use.
$legacy_handler(LegacyDataHandler) (required)
Legacy order data handler instance.
$data_synchronizer(DataSynchronizer) (required)
Data synchronizer instance.

LegacyDataCleanup::init() code WC 8.9.0

final public function init( BatchProcessingController $batch_processing, LegacyDataHandler $legacy_handler, DataSynchronizer $data_synchronizer ) {
	$this->legacy_handler    = $legacy_handler;
	$this->data_synchronizer = $data_synchronizer;
	$this->batch_processing  = $batch_processing;
	$this->error_logger      = wc_get_logger();
}