WC_Queue
in package
WC Queue
Singleton for managing the WC queue instance.
Tags
Table of Contents
- $default_cass : string
- The default queue class to initialize
- $instance : WC_Queue_Interface|null
- The single instance of the queue.
- instance() : WC_Queue_Interface
- Single instance of WC_Queue_Interface
- get_class() : string
- Get class to instantiate
- validate_instance() : WC_Queue_Interface
- Enforce a WC_Queue_Interface
Properties
$default_cass
The default queue class to initialize
protected
static string
$default_cass
= 'WC_Action_Queue'
$instance
The single instance of the queue.
protected
static WC_Queue_Interface|null
$instance
=
ull
Methods
instance()
Single instance of WC_Queue_Interface
public
final static instance() : WC_Queue_Interface
Return values
WC_Queue_Interface —get_class()
Get class to instantiate
protected
static get_class() : string
And make sure 3rd party code has the chance to attach a custom queue class.
Return values
string —validate_instance()
Enforce a WC_Queue_Interface
protected
static validate_instance(WC_Queue_Interface $instance) : WC_Queue_Interface
Parameters
- $instance : WC_Queue_Interface
-
Instance class.