public function setAttachments($attachments) {
        /** @var AttachmentInterface $attachment */
        foreach ($attachments as $attachment) {
            $attachment->setMail($this);
        }

        $this->setData('attachments', $attachments);

        return $this;
    }
public function setAttachments($attachments) {
        /** @var AttachmentInterface $attachment */
        foreach ($attachments as $attachment) {
            $attachment->setMail($this);
        }

        $this->setData('attachments', $attachments);

        return $this;
    }
public function setAttachments ( $ attachments ) { /** @var AttachmentInterface $attachment */ foreach ( $ attachments as $ attachment ) { $ attachment -> setMail ( $ this ) ; } $ this -> setData ( 'attachments' , $ attachments ) ; return $ this ; }
Set reverse link on each attached entity

@var $attachments AttachmentInterface[]
Set reverse link on each attached entity