WorkflowInterface
interface WorkflowInterface
Methods
Details
Marking
getMarking(object $subject)
Returns the object's Marking.
Parameters
object | $subject | A subject |
Return Value
Exceptions
bool
can(object $subject, string $transitionName)
Returns true if the transition is enabled.
Parameters
object | $subject | A subject |
string | $transitionName | A transition |
Return Value
bool | true if the transition is enabled |
TransitionBlockerList
buildTransitionBlockerList($subject, string $transitionName)
Builds a TransitionBlockerList to know why a transition is blocked.
Parameters
| $subject | |
string | $transitionName | |
Return Value
Marking
apply(object $subject, string $transitionName)
Fire a transition.
Parameters
object | $subject | A subject |
string | $transitionName | A transition |
Return Value
Exceptions
Transition[]
getEnabledTransitions(object $subject)
Returns all enabled transitions.
Parameters
object | $subject | A subject |
Return Value
string
getName()
Return Value
Return Value
Return Value
Return Value