protected function whenUserWasCreated(UserWasCreated $event) { //Simply assign the event payload to the appropriate properties $this->uuid = Uuid::fromString($event->aggregateId()); $this->name = $event->username(); }