public function calculateTotal()
    {
        $this->total = $this->getItemsTotal() + $this->getAdjustmentTotal();

        if ($this->total < 0) {
            $this->total = 0;
        }

        return $this;
    }
public function calculateTotal()
    {
        $this->total = $this->getItemsTotal() + $this->getAdjustmentTotal();

        if ($this->total < 0) {
            $this->total = 0;
        }

        return $this;
    }
public function calculateTotal ( ) { $ this -> total = $ this -> getItemsTotal ( ) + $ this -> getAdjustmentTotal ( ) ; if ( $ this -> total < 0 ) { $ this -> total = 0 ; } return $ this ; }
Calculate the total amount for the whole container

@return $this
Calculate the total amount for the whole container