public function accept() { /* @var $state StateInterface */ $state = $this->current(); return $state->hasEvent($this->eventName); }