public function getAttachments()
    {
        /** @noinspection IsEmptyFunctionUsageInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        if (!empty(parent::getAttachments())) {
            /** @noinspection PhpUndefinedMethodInspection */
            return parent::getAttachments();
        }

        $attachments = $this->_storage->getAttachments($this);

        /** @noinspection PhpUndefinedMethodInspection */
        $this->setAttachments($attachments);

        return $attachments;
    }
public function getAttachments()
    {
        /** @noinspection IsEmptyFunctionUsageInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        if (!empty(parent::getAttachments())) {
            /** @noinspection PhpUndefinedMethodInspection */
            return parent::getAttachments();
        }

        $attachments = $this->_storage->getAttachments($this);

        /** @noinspection PhpUndefinedMethodInspection */
        $this->setAttachments($attachments);

        return $attachments;
    }
public function getAttachments ( ) { /** @noinspection IsEmptyFunctionUsageInspection */ /** @noinspection PhpUndefinedMethodInspection */ if ( ! empty ( parent :: getAttachments ( ) ) ) { /** @noinspection PhpUndefinedMethodInspection */ return parent :: getAttachments ( ) ; } $ attachments = $ this -> _storage -> getAttachments ( $ this ) ; /** @noinspection PhpUndefinedMethodInspection */ $ this -> setAttachments ( $ attachments ) ; return $ attachments ; }
A mail can have zero to n associated attachments.
An Attachment is a meta description to get information and access to binary data

@return \Shockwavemk\Mail\Base\Model\Mail\Attachment[] Attachments
@throws \Magento\Framework\Exception\MailException
A mail can have zero to n associated attachments . An Attachment is a meta description to get information and access to binary data