Automattic\WooCommerce\Internal\PushNotifications\Services

NotificationPreferencesService::initpublicWC 10.8.0

Initialize injected dependencies.

Method of the class: NotificationPreferencesService{}

No Hooks.

Returns

null. Nothing (null).

Usage

$NotificationPreferencesService = new NotificationPreferencesService();
$NotificationPreferencesService->init( $data_store ): void;
$data_store(NotificationPreferencesDataStore) (required)
The data store.

Changelog

Since 10.8.0 Introduced.

NotificationPreferencesService::init() code WC 10.9.1

final public function init( NotificationPreferencesDataStore $data_store ): void {
	$this->data_store = $data_store;
}