/** * {@inheritdoc} */ public function addAttribute(AttributeInterface $attribute) { if (!$this->hasAttribute($attribute)) { $this->attributes->add($attribute); } return $this; }
/** * {@inheritdoc} */ public function addAttribute(AttributeInterface $attribute) { if (!$this->hasAttribute($attribute)) { $attribute->setPatient($this); $this->attributes->add($attribute); } return $this; }
/** * {@inheritdoc} */ public function addAttribute(AttributeInterface $attribute) { $this->attributes->add($attribute); }
/** * {@inheritdoc} */ public function addAttribute(BaseAttributeInterface $attribute) { $this->attributes->add($attribute); return $this; }