Automattic\WooCommerce\Internal\PushNotifications\Services
PendingNotificationStore::init
Initialize dependencies.
Method of the class: PendingNotificationStore{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PendingNotificationStore = new PendingNotificationStore(); $PendingNotificationStore->init( $dispatcher, $data_store, $step_logger ): void;
- $dispatcher(InternalNotificationDispatcher) (required)
- The dispatcher to use on shutdown.
- $data_store(PushTokensDataStore) (required)
- The push tokens data store.
- $step_logger(NotificationStepLogger) (required)
- The step logger.
Changelog
| Since 10.7.0 | Introduced. |
PendingNotificationStore::init() PendingNotificationStore::init code WC 11.3.0
final public function init(
InternalNotificationDispatcher $dispatcher,
PushTokensDataStore $data_store,
NotificationStepLogger $step_logger
): void {
$this->dispatcher = $dispatcher;
$this->data_store = $data_store;
$this->step_logger = $step_logger;
}