コード例 #1
0
ファイル: Prototype.php プロジェクト: bcremer/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeAttribute(AttributeInterface $attribute)
 {
     if ($this->hasAttribute($attribute)) {
         $this->attributes->removeElement($attribute);
     }
     return $this;
 }
コード例 #2
0
ファイル: Archetype.php プロジェクト: vikey89/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeAttribute(AttributeInterface $attribute)
 {
     $this->attributes->removeElement($attribute);
 }
コード例 #3
0
ファイル: Archetype.php プロジェクト: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeAttribute(BaseAttributeInterface $attribute)
 {
     $this->attributes->removeElement($attribute);
     return $this;
 }