ActionScheduler_QueueCleaner::__construct()publicWC 1.0

ActionScheduler_QueueCleaner constructor.

Method of the class: ActionScheduler_QueueCleaner{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->__construct( $store, $batch_size );
$store(ActionScheduler_Store)
The store instance.
Default: null
$batch_size(int)
The batch size.
Default: 20

ActionScheduler_QueueCleaner::__construct() code WC 8.7.0

public function __construct( ActionScheduler_Store $store = null, $batch_size = 20 ) {
	$this->store = $store ? $store : ActionScheduler_Store::instance();
	$this->batch_size = $batch_size;
}