示例#1
0
 /**
  * {@inheritdoc}
  */
 public function addAttribute(AttributeInterface $attribute)
 {
     if (!$this->hasAttribute($attribute)) {
         $this->attributes->add($attribute);
     }
     return $this;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function addAttribute(AttributeInterface $attribute)
 {
     if (!$this->hasAttribute($attribute)) {
         $attribute->setPatient($this);
         $this->attributes->add($attribute);
     }
     return $this;
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function addAttribute(AttributeInterface $attribute)
 {
     $this->attributes->add($attribute);
 }
示例#4
0
 /**
  * {@inheritdoc}
  */
 public function addAttribute(BaseAttributeInterface $attribute)
 {
     $this->attributes->add($attribute);
     return $this;
 }