private function decrease_subtotal($amount = 0.0) { $amount = (double) $amount; $this->subtotal -= $amount; if ($this->subtotal < 0) { $this->subtotal = 0; } $this->recalculate_total(); }