public function toArray() { $data = []; foreach ($this->eventData as $k => $v) { $data[$k] = $v; } return $data; }