Пример #1
0
 /**
  * Executes the onEnter handler for the current state before applying a transition.
  *
  * @param StatefulSubjectInterface $subject
  * @param StateInterface $current_state
  */
 protected function enterState(StatefulSubjectInterface $subject, StateInterface $next_state)
 {
     $next_state->onEntry($subject);
 }