예제 #1
0
파일: Option.php 프로젝트: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function addValue(OptionValueInterface $value)
 {
     if (!$this->hasValue($value)) {
         $value->setOption($this);
         $this->values->add($value);
     }
 }
예제 #2
0
파일: Variant.php 프로젝트: bcremer/Sylius
 /**
  * {@inheritdoc}
  */
 public function addOption(OptionValueInterface $option)
 {
     if (!$this->hasOption($option)) {
         $this->options->add($option);
     }
     return $this;
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function addValue(OptionValueInterface $value)
 {
     $this->assertMultipleAllowed();
     if (!$this->hasValue($value)) {
         $this->optionValues->add($value);
     }
     return $this;
 }