Automattic\WooCommerce\Internal\StockNotifications\AsyncTasks
NotificationsProcessor::init
Initialize the controller.
Method of the class: NotificationsProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NotificationsProcessor = new NotificationsProcessor(); $NotificationsProcessor->init( $eligibility_service, $job_manager, $cycle_state_service, $email_manager ): void;
- $eligibility_service(EligibilityService) (required)
- The eligibility service.
- $job_manager(JobManager) (required)
- The job manager.
- $cycle_state_service(CycleStateService) (required)
- The cycle state service.
- $email_manager(EmailManager) (required)
- The email manager.
NotificationsProcessor::init() NotificationsProcessor::init code WC 10.3.6
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;
}