コード例 #1
0
ファイル: Prototype.php プロジェクト: bcremer/Sylius
 /**
  * {@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
ファイル: Archetype.php プロジェクト: vikey89/Sylius
 /**
  * {@inheritdoc}
  */
 public function addAttribute(AttributeInterface $attribute)
 {
     $this->attributes->add($attribute);
 }
コード例 #4
0
ファイル: Archetype.php プロジェクト: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function addAttribute(BaseAttributeInterface $attribute)
 {
     $this->attributes->add($attribute);
     return $this;
 }