Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function addTransition(TransitionalStateInterface $state, TransitionEventInterface $event, StateInterface $nextState, $action, $guard)
 {
     $event->setNextState($nextState);
     $event->setAction($action);
     $event->setGuard($guard);
     $state->addTransitionEvent($event);
     $this->transitionMap[$state->getStateId()][$event->getEventId()] = $nextState;
 }