Automattic\WooCommerce\Internal\PushNotifications\Services
NotificationPreferencesService::init
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() NotificationPreferencesService::init code WC 10.9.1
final public function init( NotificationPreferencesDataStore $data_store ): void {
$this->data_store = $data_store;
}