| 1 | <?php |
||
| 7 | class Book |
||
| 8 | { |
||
| 9 | public $title; |
||
| 10 | public $subtitle; |
||
| 11 | public $authors; |
||
| 12 | public $printType; |
||
| 13 | public $pageCount; |
||
| 14 | public $publisher; |
||
| 15 | public $publishedDate; |
||
| 16 | public $publishedDateFormat; |
||
| 17 | public $averageRating; |
||
| 18 | public $thumbnail; |
||
| 19 | public $language; |
||
| 20 | public $categories; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * New up a book. |
||
| 24 | * |
||
| 25 | * @param string $title |
||
| 26 | * @param string $subtitle |
||
| 27 | * @param array $authors |
||
| 28 | * @param string $printType |
||
| 29 | * @param int $pageCount |
||
| 30 | * @param string $publisher |
||
| 31 | * @param DateTime $publishedDate |
||
| 32 | * @param int $averageRating |
||
| 33 | * @param string $thumbnail |
||
| 34 | * @param string $language |
||
| 35 | * @param array $categories |
||
| 36 | */ |
||
| 37 | public function __construct($title, $subtitle, array $authors, $printType, $pageCount, $publisher, DateTime $publishedDate = null, $publishedDateFormat, $averageRating, $thumbnail, $language, array $categories) |
||
| 52 | } |
||
| 53 |