public function parse_data() { $data = array(); foreach ($this as $key => $value) { $data[$key] = $value; } return $data; }