public function firstEvent() { if (empty($this->calls)) { throw new UndefinedEventException(0); } return $this->calls[0]; }