Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::init │ public │ WC 1.0

Initialize the class instance.

Метод класса: MyAccountEndpoint{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$MyAccountEndpoint = new MyAccountEndpoint();
$MyAccountEndpoint->init( $notification_management_service, $view ): void;
$notification_management_service(NotificationManagementService) (обязательный)
The notification management service.
$view(MyAccountView) (обязательный)
Builds the template arguments.

Код MyAccountEndpoint::init() WC 11.2.2

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