/**
  * Overrides the "StateMachine::enterState" method,
  * in order to support/emit the ON_STATE_ENTERED event.
  *
  * @param StatefulSubjectInterface $subject
  * @param StateInterface $current_state
  */
 protected function enterState(StatefulSubjectInterface $subject, StateInterface $next_state)
 {
     parent::enterState($subject, $next_state);
     $this->fireEvent(self::ON_STATE_ENTERED, $subject, $next_state);
 }