22232425262728
this.number = number; this.customerId = customerId; } public void win(double prizeAmount) { apply(new LotteryTicketPrizeAwardedEvent(aggregate.getVersionedId(), number, customerId, prizeAmount)); }