public function Total($decimal_size = null)
    {
        if ($this->Cost && $this->Tax) {
            $cost = $this->Cost + (($this->Cost / 100) * $this->Tax);
        } else {
            $cost = $this->Cost;
        }
        
        if($decimal_size) {
            $cost = number_format($cost, $decimal_size);
        }
        
        return $cost;
    }
public function Total($decimal_size = null)
    {
        if ($this->Cost && $this->Tax) {
            $cost = $this->Cost + (($this->Cost / 100) * $this->Tax);
        } else {
            $cost = $this->Cost;
        }
        
        if($decimal_size) {
            $cost = number_format($cost, $decimal_size);
        }
        
        return $cost;
    }
public function Total ( $ decimal_size = null ) { if ( $ this -> Cost && $ this -> Tax ) { $ cost = $ this -> Cost + ( ( $ this -> Cost / 100 ) * $ this -> Tax ) ; } else { $ cost = $ this -> Cost ; } if ( $ decimal_size ) { $ cost = number_format ( $ cost , $ decimal_size ) ; } return $ cost ; }
Get the total cost including tax

@param int $decimal_size Should we round this number to a
specific size? If set will round the output.
@return Float
Get the total cost including tax