priceResolver = $priceResolver; } /** * {@inheritdoc} */ public function getValue() { if (!isset($this->values[$this->product->getId()])) { $this->values[$this->product->getId()] = $this->priceResolver->resolvePrice($this->product); } return $this->values[$this->product->getId()]; } }