The base Transition class.
Feel free to extend it to fit to your needs
Implements:
TransitionInterface
__construct( string $name, string| array $initialStates, string $state) | ||
addInitialState( string| StateInterface $state) | ||
array |
getInitialStates()
Returns the array of states that supports this transition |
|
string |
getState()
Returns the state resulting of this transition |
|
mixed |
process( StateMachine $stateMachine)
Process the transition |
|
string |
getName()
Returns the name of the transition |
|
string | __toString() |
public
__construct( string $name, string| array $initialStates, string $state)
Parameters |
|
---|
public
addInitialState( string| StateInterface $state)
public array
getInitialStates()
Returns the array of states that supports this transition
Return Value |
|
---|
public string
getState()
Returns the state resulting of this transition
Return Value |
|
---|
public mixed
process( StateMachine $stateMachine)
public string
getName()
Returns the name of the transition
Return Value |
|
---|
public string
__toString()
Return Value |
|
---|