/** * @param Attachment $attachment */ public function addAttachment(Attachment $attachment) { $this->attachments->add($attachment); }
public function removeAttachment(Attachment $attachment) { $this->attachments->removeElement($attachment); }
/** * Remove attachments * * @param \Attachment $attachments */ public function removeAttachment(\Attachment $attachments) { /** @noinspection PhpUndefinedMethodInspection */ $this->attachments->removeElement($attachments); }