ActionScheduler_WPCLI_QueueRunner::__constructpublicWC 1.0

ActionScheduler_WPCLI_QueueRunner constructor.

Метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->__construct( ?ActionScheduler_Store $store, ?ActionScheduler_FatalErrorMonitor $monitor, ?ActionScheduler_QueueCleaner $cleaner );
?ActionScheduler_Store $store
.
По умолчанию: null
?ActionScheduler_FatalErrorMonitor $monitor
.
По умолчанию: null
?ActionScheduler_QueueCleaner $cleaner
.
По умолчанию: null

Код ActionScheduler_WPCLI_QueueRunner::__construct() WC 11.1.1

public function __construct( ?ActionScheduler_Store $store = null, ?ActionScheduler_FatalErrorMonitor $monitor = null, ?ActionScheduler_QueueCleaner $cleaner = null ) {
	if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) ) {
		/* translators: %s php class name */
		throw new Exception( sprintf( __( 'The %s class can only be run within WP CLI.', 'woocommerce' ), __CLASS__ ) );
	}

	parent::__construct( $store, $monitor, $cleaner );

	$this->is_custom_cleaner = get_class( $this->cleaner ) !== ActionScheduler_QueueCleaner::class;
}