/** * @param PostWasCreated $event */ protected function applyPostWasCreated(PostWasCreated $event) { $this->title = $event->title(); $this->content = $event->content(); }