/** * * @param array $messageIdList * @return array<MAILBOX_BOL_Attachment> */ public function findAttachmentsByMessageIdList(array $messageIdList) { $result = array(); $list = $this->attachmentDao->findAttachmentsByMessageIdList($messageIdList); foreach ($list as $attachment) { $result[$attachment->messageId][] = $attachment; } return $result; }
/** * * @param array $messageIdList * @return array<MAILBOX_BOL_Attachment> */ public function findAttachmentsByMessageIdList(array $messageIdList) { return $this->attachmentDao->findAttachmentsByMessageIdList($messageIdList); }