PHP Class Metabor\Statemachine\Factory\Factory

Author: Oliver Tischlinger
Inheritance: implements MetaborStd\Statemachine\Factory\FactoryInterface
Mostrar archivo Open project: metabor/statemachine

Public Methods

Method Description
__construct ( MetaborStd\Statemachine\Factory\ProcessDetectorInterface $processDetector, MetaborStd\Statemachine\Factory\StateNameDetectorInterface $stateNameDetector = null )
attachStatemachineObserver ( SplObserver $observer )
createStatemachine ( object $subject ) : MetaborStd\Statemachine\StatemachineInterface
detachStatemachineObserver ( SplObserver $observer )
getStatemachineObserver ( ) : Traversable
setMutexFactory ( MetaborStd\Semaphore\MutexFactoryInterface $mutexFactory = null )
setTransitonSelector ( MetaborStd\Statemachine\Factory\TransitionSelectorInterface $transitionSelector )

Method Details

__construct() public method

public __construct ( MetaborStd\Statemachine\Factory\ProcessDetectorInterface $processDetector, MetaborStd\Statemachine\Factory\StateNameDetectorInterface $stateNameDetector = null )
$processDetector MetaborStd\Statemachine\Factory\ProcessDetectorInterface
$stateNameDetector MetaborStd\Statemachine\Factory\StateNameDetectorInterface

attachStatemachineObserver() public method

public attachStatemachineObserver ( SplObserver $observer )
$observer SplObserver

createStatemachine() public method

public createStatemachine ( object $subject ) : MetaborStd\Statemachine\StatemachineInterface
$subject object
return MetaborStd\Statemachine\StatemachineInterface

detachStatemachineObserver() public method

public detachStatemachineObserver ( SplObserver $observer )
$observer SplObserver

getStatemachineObserver() public method

setMutexFactory() public method

public setMutexFactory ( MetaborStd\Semaphore\MutexFactoryInterface $mutexFactory = null )
$mutexFactory MetaborStd\Semaphore\MutexFactoryInterface

setTransitonSelector() public method

public setTransitonSelector ( MetaborStd\Statemachine\Factory\TransitionSelectorInterface $transitionSelector )
$transitionSelector MetaborStd\Statemachine\Factory\TransitionSelectorInterface