Group Class¶
- class Group¶
Represents a group of states and transitions that are concurrent with other groups
- addState(StateInterface ...$state)¶
Adds state(s)
- Parameters:
...$state (
StateInterface) – The state(s)
- Returns:
A new instance of State with the state(s) added
- Return type:
- addTransition(Transition ...$transition)¶
Adds transition(s)
- Parameters:
...$transition (
Transition) – The transition(s)
- Returns:
A new instance of State with the transition(s) added
- Return type:
- withComment(string $comment)¶
Set a comment
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of State with a comment
- Return type:
- withState(StateInterface ...$state)¶
Set state(s)
- Parameters:
...$state (
StateInterface) – The state(s)
- Returns:
A new instance of State with the state(s)
- Return type:
- withTransition(Transition ...$transition)¶
Sets transition(s)
- Parameters:
...$transition (
Transition) – The transition(s)
- Returns:
A new instance of State with the transition(s)
- Return type: