Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::init()publicWC 1.0

Class initialization, invoked by the DI container.

Method of the class: DataSynchronizer{}

No Hooks.

Return

null. Nothing.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->init( $data_store, $database_util, $posts_to_cot_migrator, $legacy_proxy );
$data_store(OrdersTableDataStore) (required)
The data store to use.
$database_util(DatabaseUtil) (required)
The database util class to use.
$posts_to_cot_migrator(PostsToOrdersMigrationController) (required)
The posts to COT migration class to use.
$legacy_proxy(LegacyProxy) (required)
The legacy proxy instance to use.

DataSynchronizer::init() code WC 7.1.0

final public function init( OrdersTableDataStore $data_store, DatabaseUtil $database_util, PostsToOrdersMigrationController $posts_to_cot_migrator, LegacyProxy $legacy_proxy ) {
	$this->data_store            = $data_store;
	$this->database_util         = $database_util;
	$this->posts_to_cot_migrator = $posts_to_cot_migrator;
	$this->error_logger          = $legacy_proxy->call_function( 'wc_get_logger' );
}