public function popState() { $state = $this->stateStack[--$this->currentStackPosition]; $this->currentStateData = $this->stateData[$state]; }