public function setTotal($total)
    {
        NumericValidator::validate($total, "Total");
        $total = Formatter::formatToPrice($total, $this->getCurrency());
        $this->total = $total;
        return $this;
    }
public function setTotal($total)
    {
        NumericValidator::validate($total, "Total");
        $total = Formatter::formatToPrice($total, $this->getCurrency());
        $this->total = $total;
        return $this;
    }
public function setTotal ( $ total ) { NumericValidator :: validate ( $ total , "Total" ) ; $ total = Formatter :: formatToPrice ( $ total , $ this -> getCurrency ( ) ) ; $ this -> total = $ total ; return $ this ; }
Total amount charged from the payer to the payee. In case of a refund,
this is the refunded amount to the original payer from the payee.
10 characters max with support for integers.

@param string|double $total

@return $this
Total amount charged from the payer to the payee . In case of a refund this is the refunded amount to the original payer from the payee . 10 characters max with support for integers .