| 1 | <?php |
||
| 11 | { |
||
| 12 | /** @var Book[] */ |
||
| 13 | protected array $books; |
||
|
|
|||
| 14 | |||
| 15 | /** @var Category[] */ |
||
| 16 | protected array $categories; |
||
| 17 | |||
| 18 | /** @var Editor[] */ |
||
| 19 | protected array $editors; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return Book[] |
||
| 23 | */ |
||
| 24 | public function getBooks(): array |
||
| 25 | { |
||
| 26 | return $this->books; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return Editor[] |
||
| 31 | */ |
||
| 32 | public function getEditors(): array |
||
| 33 | { |
||
| 34 | return $this->editors; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return Category[] |
||
| 39 | */ |
||
| 40 | public function getCategories(): array |
||
| 41 | { |
||
| 42 | return $this->categories; |
||
| 43 | } |
||
| 45 |