public function getTotalWithCoupons()
    {
        $total = $this->getTotal();
        $totalWithCoupons = $total;

        $this->coupons->each(function (Coupon $coupon) use ($total, &$totalWithCoupons) {
            /**
             * @var Coupon $coupon
             */
            $totalWithCoupons -= $coupon->apply($total);
        });

        return $totalWithCoupons;
    }
public function getTotalWithCoupons()
    {
        $total = $this->getTotal();
        $totalWithCoupons = $total;

        $this->coupons->each(function (Coupon $coupon) use ($total, &$totalWithCoupons) {
            /**
             * @var Coupon $coupon
             */
            $totalWithCoupons -= $coupon->apply($total);
        });

        return $totalWithCoupons;
    }
public function getTotalWithCoupons ( ) { $ total = $ this -> getTotal ( ) ; $ totalWithCoupons = $ total ; $ this -> coupons -> each ( function ( Coupon $ coupon ) use ( $ total , & $ totalWithCoupons ) { /**
             * @var Coupon $coupon
             */ $ totalWithCoupons -= $ coupon -> apply ( $ total ) ; } ) ; return $ totalWithCoupons ; }
Get total price with coupons.

@return float
Get total price with coupons .