Automattic\WooCommerce\Internal\PushNotifications\Services

PendingNotificationStore::init │ public │ WC 10.7.0

Initialize dependencies.

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

Хуков нет.

Возвращает

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

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

$PendingNotificationStore = new PendingNotificationStore();
$PendingNotificationStore->init( $dispatcher, $data_store ): void;
$dispatcher(InternalNotificationDispatcher) (обязательный)
The dispatcher to use on shutdown.
$data_store(PushTokensDataStore) (обязательный)
The push tokens data store.

Список изменений

С версии 10.7.0 Введена.

Код PendingNotificationStore::init() WC 11.2.2

final public function init( InternalNotificationDispatcher $dispatcher, PushTokensDataStore $data_store ): void {
	$this->dispatcher = $dispatcher;
	$this->data_store = $data_store;
}