Automattic\WooCommerce\Internal\PushNotifications\Dispatchers

WpcomNotificationDispatcher::init │ public │ WC 11.3.0

Initialize injected dependencies.

Method of the class: WpcomNotificationDispatcher{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WpcomNotificationDispatcher = new WpcomNotificationDispatcher();
$WpcomNotificationDispatcher->init( $step_logger ): void;
$step_logger(NotificationStepLogger) (required)
The step logger.

Changelog

Since 11.3.0 Introduced.

WpcomNotificationDispatcher::init() code WC 11.3.0

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