Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::init │ public │ WC 1.0

Initialize the class instance.

Method of the class: MyAccountEndpoint{}

No Hooks.

Returns

null. Nothing (null).

Usage

$MyAccountEndpoint = new MyAccountEndpoint();
$MyAccountEndpoint->init( $notification_management_service, $view ): void;
$notification_management_service(NotificationManagementService) (required)
The notification management service.
$view(MyAccountView) (required)
Builds the template arguments.

MyAccountEndpoint::init() code WC 11.3.0

final public function init( NotificationManagementService $notification_management_service, MyAccountView $view ): void {
	$this->notification_management_service = $notification_management_service;
	$this->view                            = $view;
}