public function getSubtotal() { $total = 0; foreach ($this->items as $i) { $total += $i->subtotal(); } return $total; }