public function addBook(Book $book) { $this->books[] = $book; $book->setAuthor($this); return $this; }