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