ActionScheduler_HybridStore::__construct()publicWC 1.0

ActionScheduler_HybridStore constructor.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_HybridStore = new ActionScheduler_HybridStore();
$ActionScheduler_HybridStore->__construct( $config );
$config(Config)
Migration config object.
Default: null

ActionScheduler_HybridStore::__construct() code WC 8.7.0

public function __construct( Config $config = null ) {
	$this->demarkation_id = (int) get_option( self::DEMARKATION_OPTION, 0 );
	if ( empty( $config ) ) {
		$config = Controller::instance()->get_migration_config_object();
	}
	$this->primary_store    = $config->get_destination_store();
	$this->secondary_store  = $config->get_source_store();
	$this->migration_runner = new Runner( $config );
}