public function hasEvent($event) { $transitions = $this->getCurrentState()->getTransitionsTriggeredByEvent($event); if (count($transitions) > 0) { return true; } return false; }