Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::init()publicWC 1.0

Initialize the object.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->init( $data_store_meta, $database_util, $legacy_proxy );
$data_store_meta(OrdersTableDataStoreMeta) (required)
Metadata instance.
$database_util(DatabaseUtil) (required)
The database util instance to use.
$legacy_proxy(LegacyProxy) (required)
The legacy proxy instance to use.

OrdersTableDataStore::init() code WC 7.1.0

final public function init( OrdersTableDataStoreMeta $data_store_meta, DatabaseUtil $database_util, LegacyProxy $legacy_proxy ) {
	$this->data_store_meta    = $data_store_meta;
	$this->database_util      = $database_util;
	$this->error_logger       = $legacy_proxy->call_function( 'wc_get_logger' );
	$this->internal_meta_keys = $this->get_internal_meta_keys();
}