public function getAmountRefunded() { if ($this->amountRefunded) { return floatval($this->amountRefunded); } return 0.0; }