Fork me on Github

Interface Finite\Transition\ TransitionInterface

The base Transition interface

Methods

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

Details

public array getInitialStates()

Returns the array of states that supports this transition

Return Value
array

public string getState()

Returns the state resulting of this transition

Return Value
string

public mixed process( StateMachine $stateMachine)

Process the transition

Parameters
StateMachine $stateMachine
Return Value
mixed

public string getName()

Returns the name of the transition

Return Value
string