public function getAmountRemaining() { if ($this->amountRemaining) { return floatval($this->amountRemaining); } return 0.0; }