Used to mark the initial construction of a statemachine at a certain
point in time. subsequent calls to 'add' will not have any effect if it
has already been persisted.
public add ( string $state, string $message = null ) : boolean | ||
$state | string | |
$message | string | optional message. this can be used by the persistence adapter to be part of the transition history to provide extra information about the transition. |
return | boolean | true if it was added, false if it was already there |