ActionScheduler_HybridStore::__construct
ActionScheduler_HybridStore constructor.
Метод класса: ActionScheduler_HybridStore{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ActionScheduler_HybridStore = new ActionScheduler_HybridStore(); $ActionScheduler_HybridStore->__construct( ?Config $config );
- ?Config $config
- .
По умолчанию:null
Код ActionScheduler_HybridStore::__construct() ActionScheduler HybridStore:: construct WC 11.0.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 );
}