/** * {@inheritdoc} */ public function addValue(ProductValueInterface $value) { $this->values[] = $value; $this->indexedValues[$value->getAttribute()->getCode()][] = $value; $value->setEntity($this); return $this; }