public function lastEvent() { if ($this->endEvent) { return $this->endEvent; } if ($events = $this->iterableEvents()) { return $events[count($events) - 1]; } if ($this->responseEvent) { return $this->responseEvent; } return $this->calledEvent; }