프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$currentState | Finite\State\StateInterface | The current state. | |
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$graph | string | ||
$object | object | The stateful object. | |
$stateAccessor | Finite\State\Accessor\StateAccessorInterface | ||
$states | array | The available states. | |
$transitions | array | The available transitions. |
메소드 | 설명 | |
---|---|---|
__construct ( object $object = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher = null, Finite\State\Accessor\StateAccessorInterface $stateAccessor = null ) | ||
addState ( $state ) | ||
addTransition ( $transition, $initialState = null, $finalState = null ) | ||
apply ( $transitionName, array $parameters = [] ) | ||
can ( $transition, array $parameters = [] ) | ||
findStateWithProperty ( $property, $value = null ) | {@inheritDoc} | |
getCurrentState ( ) | ||
getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
getGraph ( ) | ||
getObject ( ) | ||
getState ( $name ) | ||
getStates ( ) | ||
getTransition ( $name ) | ||
getTransitions ( ) | ||
hasStateAccessor ( ) | ||
initialize ( ) | ||
setDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
setGraph ( $graph ) | ||
setObject ( $object ) | ||
setStateAccessor ( Finite\State\Accessor\StateAccessorInterface $stateAccessor ) |
메소드 | 설명 | |
---|---|---|
findInitialState ( ) : string | Find and return the Initial state if exists. |
메소드 | 설명 | |
---|---|---|
dispatchTransitionEvent ( Finite\Transition\TransitionInterface $transition, Finite\Event\TransitionEvent $event, type $transitionState ) | Dispatches event for the transition |
public __construct ( object $object = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher = null, Finite\State\Accessor\StateAccessorInterface $stateAccessor = null ) | ||
$object | object | |
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$stateAccessor | Finite\State\Accessor\StateAccessorInterface |
public addTransition ( $transition, $initialState = null, $finalState = null ) |
protected findInitialState ( ) : string | ||
리턴 | string |
public findStateWithProperty ( $property, $value = null ) |
public getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
리턴 | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public setDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public setStateAccessor ( Finite\State\Accessor\StateAccessorInterface $stateAccessor ) | ||
$stateAccessor | Finite\State\Accessor\StateAccessorInterface |
protected StateInterface,Finite\State $currentState | ||
리턴 | Finite\State\StateInterface |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher | ||
리턴 | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected StateAccessorInterface,Finite\State\Accessor $stateAccessor | ||
리턴 | Finite\State\Accessor\StateAccessorInterface |