public function __construct($title, $dateOfPublication, $numberOfPublication, $publisher, $genre, $author) { parent::__construct($title, $dateOfPublication, $publisher, $genre); $this->author = $author; $this->numberOfPublication = $numberOfPublication; }
/** * Book constructor. * @param $catalogNumber * @param $title * @param $dateOfPublication * @param $publisher * @param $genre * @param $covers * @param $author */ public function __construct($title, $dateOfPublication, $publisher, $genre, $covers, $author) { parent::__construct($title, $dateOfPublication, $publisher, $genre); $this->covers = $covers; $this->author = $author; }