/** * @return \WellCommerce\Bundle\CartBundle\Entity\CartTotalsInterface */ public function create() { $totals = new CartTotals(); $totals->setQuantity(0); $totals->setGrossPrice(0); $totals->setNetPrice(0); $totals->setTaxAmount(0); $totals->setWeight(0); return $totals; }
/** * {@inheritdoc} */ public function getShippingCostGrossPrice() : float { return $this->totals->getGrossPrice(); }