public getProduct ( ) : Sonata\Component\Product\ProductInterface | ||
return | Sonata\Component\Product\ProductInterface |
public function getProduct();
/** * {@inheritdoc} */ public function removeBasketElement(BasketElementInterface $element) { $pos = $element->getPosition(); $this->cptElement--; unset($this->positions[$element->getProduct()->getId()], $this->basketElements[$pos]); if (!$this->inBuild) { $this->buildPrices(); } return $element; }