protected function getAttributes() { return ['counter' => $this->counter, 'totalTime' => $this->totalTime, 'events' => $this->events]; }