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
__construct(Definition $definition, MarkingStoreInterface $markingStore = null, EventDispatcherInterface $dispatcher = null, string $name = 'unnamed')
TransitionBlockerList
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.