コード例 #1
0
ファイル: State.php プロジェクト: mobiskif/VKonverte_PHP
 public function __construct($context)
 {
     parent::__construct($context);
     $this->runame = "Оплатить";
 }
コード例 #2
0
ファイル: Election.php プロジェクト: vasiliy-pdk/aes
 public function afterEnter(AState $from)
 {
     parent::afterEnter($from);
     $this->getMachine()->getOwner()->finish();
 }
コード例 #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);
 }