public function registerOrderDiscount(OrderDiscount $discount) { $this->orderDiscounts[$discount->getID()] = $discount; }