data = $data; return $this; } public function getData() { return $this->data; } public function setType($type) { $this->type = $type; return $this; } public function getType() { return $this->type; } }