StateMachine
class StateMachine extends Workflow
Methods
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
No description
bool
can(object $subject, string $transitionName)
Returns true if the transition is enabled.
from Workflow
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.
from Workflow
Details
at line 14
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
in Workflow at line 85
bool
can(object $subject, string $transitionName)
Returns true if the transition is enabled.
in Workflow at line 108
TransitionBlockerList
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.
in Workflow at line 196
Transition[]
getEnabledTransitions(object $subject)
Returns all enabled transitions.