@@ -155,6 +155,9 @@ discard block |
||
155 | 155 | $this->books = new \Doctrine\Common\Collections\ArrayCollection; |
156 | 156 | } |
157 | 157 | |
158 | + /** |
|
159 | + * @param string $title |
|
160 | + */ |
|
158 | 161 | public function addBook($title) |
159 | 162 | { |
160 | 163 | $book = new DDC618Book($title, $this); |
@@ -179,6 +182,9 @@ discard block |
||
179 | 182 | /** @ORM\ManyToOne(targetEntity=DDC618Author::class, inversedBy="books") */ |
180 | 183 | public $author; |
181 | 184 | |
185 | + /** |
|
186 | + * @param DDC618Author $author |
|
187 | + */ |
|
182 | 188 | function __construct($title, $author) |
183 | 189 | { |
184 | 190 | $this->title = $title; |