public function __construct($id, $title, $type = "") { $this->id = $id; $this->type = $type; $this->title = $title; }