src/Cart.php
public function total()
    {
        return (float) array_sum(
            array_map(function (CartItem $item) {
                return $item->getTotalPrice();
            }, $this->items)
        );
    }
public function total()
    {
        return (float) array_sum(
            array_map(function (CartItem $item) {
                return $item->getTotalPrice();
            }, $this->items)
        );
    }
public function total ( ) { return ( float ) array_sum ( array_map ( function ( CartItem $ item ) { return $ item -> getTotalPrice ( ) ; } , $ this -> items ) ) ; }
Get the cart total including tax.

@return float
Get the cart total including tax .