htmlService = $htmlService; $this->smimeService = $smimeService; $this->charsetConverter = $charsetConverter; $this->phishingDetectionService = $phishingDetectionService; } public function build(int $uid, string $mailbox, Horde_Imap_Client_Base $client, string $userId): ImapMessageFetcher { return new ImapMessageFetcher( $uid, $mailbox, $client, $userId, $this->htmlService, $this->smimeService, $this->charsetConverter, $this->phishingDetectionService, ); } }