Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks

NotificationsProcessor::init │ public │ WC 1.0

Initialize the controller.

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

Хуков нет.

Возвращает

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

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

$NotificationsProcessor = new NotificationsProcessor();
$NotificationsProcessor->init( $eligibility_service, $job_manager, $cycle_state_service, $email_manager ): void;
$eligibility_service(EligibilityService) (обязательный)
The eligibility service.
$job_manager(JobManager) (обязательный)
The job manager.
$cycle_state_service(CycleStateService) (обязательный)
The cycle state service.
$email_manager(EmailManager) (обязательный)
The email manager.

Код NotificationsProcessor::init() WC 11.2.2

final public function init(
	EligibilityService $eligibility_service,
	JobManager $job_manager,
	CycleStateService $cycle_state_service,
	EmailManager $email_manager
): void {
	$this->eligibility_service = $eligibility_service;
	$this->job_manager         = $job_manager;
	$this->cycle_state_service = $cycle_state_service;
	$this->email_manager       = $email_manager;
}