sending_error_handler = $sending_error_handler; } /** @return SchedulerWorker */ function createScheduleWorker($timer) { return new SchedulerWorker($timer); } /** @return SendingQueueWorker */ function createQueueWorker($timer) { return new SendingQueueWorker($this->sending_error_handler, $this->createStatsNotificationsWorker(), $timer); } function createStatsNotificationsWorker() { return new StatsNotifications(); } /** @return SendingServiceKeyCheckWorker */ function createSendingServiceKeyCheckWorker($timer) { return new SendingServiceKeyCheckWorker($timer); } /** @return PremiumKeyCheckWorker */ function createPremiumKeyCheckWorker($timer) { return new PremiumKeyCheckWorker($timer); } /** @return BounceWorker */ function createBounceWorker($timer) { return new BounceWorker($timer); } /** @return MigrationWorker */ function createMigrationWorker($timer) { return new MigrationWorker($timer); } }