/** * {@inheritdoc} */ public function removeAttribute(AttributeInterface $attribute) { if ($this->hasAttribute($attribute)) { $this->attributes->removeElement($attribute); $attribute->setPatient(null); } return $this; }
/** * {@inheritdoc} */ public function hasAttribute(AttributeInterface $attribute) { return $this->attributes->contains($attribute); }