Automattic\WooCommerce\Internal\PushNotifications\Services

UserDataCleanupService::init │ public │ WC 11.2.0

Initialize dependencies.

Method of the class: UserDataCleanupService{}

No Hooks.

Returns

null. Nothing (null).

Usage

$UserDataCleanupService = new UserDataCleanupService();
$UserDataCleanupService->init( $push_tokens_data_store, $preferences_data_store ): void;
$push_tokens_data_store(PushTokensDataStore) (required)
The push tokens data store.
$preferences_data_store(NotificationPreferencesDataStore) (required)
The notification preferences data store.

Changelog

Since 11.2.0 Introduced.

UserDataCleanupService::init() code WC 11.3.0

final public function init(
	PushTokensDataStore $push_tokens_data_store,
	NotificationPreferencesDataStore $preferences_data_store
): void {
	$this->push_tokens_data_store = $push_tokens_data_store;
	$this->preferences_data_store = $preferences_data_store;
}