class StateMachine extends Workflow
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, $name = 'unnamed') | ||
Marking | getMarking(object $subject) Returns the object's Marking. | from Workflow |
bool | can(object $subject, string $transitionName) Returns true if the transition is enabled. | from Workflow |
Marking | apply(object $subject, string $transitionName) Fire a transition. | from Workflow |
Transition[] | getEnabledTransitions(object $subject) Returns all enabled transitions. | from Workflow |
getName() | from Workflow | |
Definition | getDefinition() | from Workflow |
Returns the object's Marking.
Returns true if the transition is enabled.
Fire a transition.
Returns all enabled transitions.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Workflow/StateMachine.html