public function __construct($id, $url, $name, $isFavorite) { parent::__construct($id, $url); $this->name = $name; $this->isFavorite = $isFavorite; }