setId($id); $this->setTitle($title); } // // Getters and setters // /** * Get this list id. * @return mixed */ function getId() { return $this->_id; } /** * Set this list id. * @param $id mixed */ function setId($id) { $this->_id = $id; } /** * Get this list title. * @return string */ function getTitle() { return $this->_title; } /** * Set this list title. * @param $title string */ function setTitle($title) { $this->_title = $title; } /** * Get the loaded list data. * @return array */ function getData() { return $this->_data; } /** * Set the loaded list data. * @param $data array */ function setData($listData) { assert(is_array($listData)); $this->_data = $listData; } } ?>