src/StateMachine/PayloadEnvelope.php
public function changeState($name)
    {
        $this->state = $name;
        $this->history[] = $name;
        $this->hasChanged = true;
    }
public function changeState($name)
    {
        $this->state = $name;
        $this->history[] = $name;
        $this->hasChanged = true;
    }
public function changeState ( $ name ) { $ this -> state = $ name ; $ this -> history [ ] = $ name ; $ this -> hasChanged = true ; }
Set new state to subject

@param string $name state name
Set new state to subject