/** * @param BookAdded $event */ protected function applyBookAdded(BookAdded $event) { parent::applyBookAdded($event); $this->title = $event->getTitle(); $this->isbn = $event->getISBN(); $this->authors = $event->getAuthors(); $this->available = true; }