ActionScheduler_HybridStore::__construct()
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() ActionScheduler HybridStore:: construct code WC 9.3.1
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 ); }