izzum\statemachine\persistence\Adapter::addHistory PHP Method

addHistory() protected method

Adds a history record for a transition
protected addHistory ( Identifier $identifier, string $state, mixed $message = null, boolean $is_exception = false )
$identifier izzum\statemachine\Identifier
$state string
$message mixed string or array/object with relevant fields. an optional message (which might be exception data or not).
$is_exception boolean an optional value, specifying if there was something exceptional or not. this can be used to signify an exception for storage in the backend so we can analyze the history for regular transitions and failed transitions
    protected function addHistory(Identifier $identifier, $state, $message = null, $is_exception = false)
    {
        //override in subclasses if needed
    }