Ejemplo n.º 1
0
 /**
  * @param Attachment $attachment
  */
 public function addAttachment(Attachment $attachment)
 {
     $this->attachments->add($attachment);
 }
Ejemplo n.º 2
0
 public function removeAttachment(Attachment $attachment)
 {
     $this->attachments->removeElement($attachment);
 }
Ejemplo n.º 3
0
 /**
  * Remove attachments
  *
  * @param \Attachment $attachments
  */
 public function removeAttachment(\Attachment $attachments)
 {
     /** @noinspection PhpUndefinedMethodInspection */
     $this->attachments->removeElement($attachments);
 }