Beispiel #1
0
 public function addAttachment(Attachment $attachment)
 {
     if (!$this->areAttachmentsEnabled()) {
         throw AttachmentException::notAllowed();
     }
     $this->attachments->add($attachment);
 }
 /**
  * @param Attachment $attachment
  */
 public function addAttachment(Attachment $attachment)
 {
     $this->attachments->add($attachment);
 }