Method |
Description |
|
addState ( string | Finite\State\StateInterface $state ) |
|
|
addTransition ( string | Finite\Transition\TransitionInterface $transition, string | null $initialState = null, string | null $finalState = null ) |
|
|
apply ( string $transitionName, array $parameters = [] ) : mixed |
Apply a transition. |
|
can ( string | Finite\Transition\TransitionInterface $transition, array $parameters = [] ) : boolean |
Returns if the transition is applicable. |
|
findStateWithProperty ( string $property, mixed $value = null ) : boolean |
Find a state which have a given property, with an optional given value. |
|
getCurrentState ( ) : Finite\State\StateInterface |
|
|
getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface |
|
|
getGraph ( ) : string |
|
|
getObject ( ) : object |
|
|
getState ( string $name ) : Finite\State\StateInterface |
|
|
getStates ( ) : array |
Returns an array containing all the states names. |
|
getTransition ( string $name ) : Finite\Transition\TransitionInterface |
Returns a transition by its name. |
|
getTransitions ( ) : array |
Returns an array containing all the transitions names. |
|
hasStateAccessor ( ) : boolean |
|
|
initialize ( ) |
Initialize the State Machine current state. |
|
setGraph ( string $graph ) |
|
|
setObject ( object $object ) |
|
|
setStateAccessor ( Finite\State\Accessor\StateAccessorInterface $stateAccessor ) |
|
|