public add ( |
||
$identifier | ||
$state | string | the initial state to set, which should be known to the client of the statemachine the first time a machine is created. this can also be retrieved via a loaded statemachine: $machine->getInitialState()->getName() |
$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. |
Результат | boolean | true if it was added, false if it was already there. |