db = $db; $this->erpApi = $erpApi; $this->ticketModule = $ticketModule; $this->config = $config; $this->formatter = $formatter; $this->logger = $logger; } /** * @param MailClientInterface $mailClient * @param EmailBackupAccount $mailAccount * @param int $projectId * * @return TicketImportHelper */ public function create( MailClientInterface $mailClient, EmailBackupAccount $mailAccount, int $projectId ): TicketImportHelper { $helper = new TicketImportHelper( $this->db, $this->erpApi, $this->ticketModule, $this->config, $this->formatter, $mailClient, $mailAccount, $projectId ); $helper->setLogger($this->logger); return $helper; } }