public function eventAt($index = 0) { if (!$this->normalizeIndex($this->eventCount, $index, $normalized)) { throw new UndefinedEventException($index); } return $this->events[$normalized]; }