예제 #1
0
 /**
  * @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;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getShippingCostGrossPrice() : float
 {
     return $this->totals->getGrossPrice();
 }