public function getAmount($format = true, $withTax = false)
    {
        $total = $this->amount;

        if ($withTax) {
            $total += $this->tax * $total;
        }

        return LaraCart::formatMoney($total, $this->locale, $this->internationalFormat, $format);
    }
public function getAmount($format = true, $withTax = false)
    {
        $total = $this->amount;

        if ($withTax) {
            $total += $this->tax * $total;
        }

        return LaraCart::formatMoney($total, $this->locale, $this->internationalFormat, $format);
    }
public function getAmount ( $ format = true , $ withTax = false ) { $ total = $ this -> amount ; if ( $ withTax ) { $ total += $ this -> tax * $ total ; } return LaraCart :: formatMoney ( $ total , $ this -> locale , $ this -> internationalFormat , $ format ) ; }
Gets the formatted amount.

@param bool $format
@param bool $withTax

@return string
Gets the formatted amount .