izzum\statemachine\persistence\Session::updateState PHP Method

updateState() protected method

{@inheritDoc}
protected updateState ( Identifier $identifier, $state, $message = null )
$identifier izzum\statemachine\Identifier
    protected function updateState(Identifier $identifier, $state, $message = null)
    {
        // set object on the session
        $data = new StorageData($identifier, $state, $message);
        $key = $identifier->getId();
        $_SESSION[$this->namespace][$key] = $data;
    }