示例#1
0
 /**
  * {@inheritdoc}
  */
 public function removeValue(OptionValueInterface $value)
 {
     $this->assertMultipleAllowed();
     if ($this->hasValue($value)) {
         $this->optionValues->removeElement($value);
     }
     return $this;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function hasValue(OptionValueInterface $value)
 {
     return $this->values->contains($value);
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function hasOption(OptionValueInterface $option)
 {
     return $this->options->contains($option);
 }