ActionScheduler_HybridStore::__constructpublicWC 1.0

ActionScheduler_HybridStore constructor.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

ActionScheduler_HybridStore::__construct() code WC 10.3.6

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 );
}