Ejemplo n.º 1
0
 public function __construct($context)
 {
     parent::__construct($context);
     $this->runame = "Оплатить";
 }
Ejemplo n.º 2
0
 public function afterEnter(AState $from)
 {
     parent::afterEnter($from);
     $this->getMachine()->getOwner()->finish();
 }
Ejemplo n.º 3
0
 /**
  * Invoked after a state transition
  * @param AState $from The state we're transitioning from
  */
 public function afterTransition(AState $fromState)
 {
     $fromState->afterExit();
     $this->getState()->afterEnter($fromState);
     $transition = new AStateTransition($this);
     $transition->to = $this->getState();
     $transition->from = $fromState;
     $this->onAfterTransition($transition);
 }