this type of handling is found in moore machines.
public transition ( string $transition_name, string $message = null ) : boolean | ||
$transition_name | string | convention: |
$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 the transition was made |