Exemplo n.º 1
0
 /**
  * @return \WellCommerce\AppBundle\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;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getShippingCostGrossPrice()
 {
     return $this->totals->getGrossPrice();
 }