/** * Run this state */ public function run() { $this->configureAvailableTransitions(); $this->stateMachine->setState($this); $this->process(); $this->stateMachine->addStateToHistory($this); $this->doTransition(); }