apply method

void apply(
  1. DomainEvent event
)

Implementation

void apply(DomainEvent event) {
  on(event);
  addEvent(event);
}