original_string: public function saveAttachments($mail)
      {
          /** @var \Shockwavemk\Mail\Base\Model\Mail\Attachment[] $attachments */
          $attachments = $mail->getAttachments();
  
          foreach ($attachments as $attachment) {
              $this->saveAttachment($attachment);
          }
  
          return $this;
      }
code: public function saveAttachments($mail)
      {
          /** @var \Shockwavemk\Mail\Base\Model\Mail\Attachment[] $attachments */
          $attachments = $mail->getAttachments();
  
          foreach ($attachments as $attachment) {
              $this->saveAttachment($attachment);
          }
  
          return $this;
      }
code_tokens: public function saveAttachments ( $ mail ) { /** @var \Shockwavemk\Mail\Base\Model\Mail\Attachment[] $attachments */ $ attachments = $ mail -> getAttachments ( ) ; foreach ( $ attachments as $ attachment ) { $ this -> saveAttachment ( $ attachment ) ; } return $ this ; }
docstring: Save all attachments of a given mail
  
  @param \Shockwavemk\Mail\Base\Model\Mail $mail
  @return $this
  @throws \Magento\Framework\Exception\FileSystemException
  @throws \Magento\Framework\Exception\MailException
  @throws \Exception
docstring_tokens: Save all attachments of a given mail