public function whenCommitteeInstantiated(CommitteeInstantiated $event) { $committee = new CommitteesList($event->committeeId(), $event->name(), $event->goal()); $this->committees->save($committee); }
protected function applyCommitteeInstantiated(CommitteeInstantiated $event) { $this->id = $event->committeeId(); $this->name = $event->name(); $this->goal = $event->goal(); }