My\Model\User::whenUserWasCreated PHP Method

whenUserWasCreated() protected method

The naming convention is: when[:ShortEventName]
protected whenUserWasCreated ( UserWasCreated $event )
$event UserWasCreated
        protected function whenUserWasCreated(UserWasCreated $event)
        {
            //Simply assign the event payload to the appropriate properties
            $this->uuid = Uuid::fromString($event->aggregateId());
            $this->name = $event->username();
        }