PHP Class Metabor\Statemachine\Graph\GraphBuilder

Author: otischlinger
Afficher le fichier Open project: metabor/statemachine Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Fhaculty\Graph\Graph $graph, MetaborStd\StringConverterInterface $stringConverter = null )
addState ( MetaborStd\Statemachine\StateInterface $state )
addStateCollection ( MetaborStd\Statemachine\StateCollectionInterface $stateCollection )
addStates ( Traversable $states )
attachLayoutCallback ( Callback $callback )
createStatusVertex ( MetaborStd\Statemachine\StateInterface $state ) : Fhaculty\Graph\Vertex
detachLayoutCallback ( Callback $callback )
getGraph ( ) : Fhaculty\Graph\Graph
setEventLayout ( string $flag, scalar $value, array $layout )
setStateLayout ( string $flag, scalar $value, array $layout )

Méthodes protégées

Méthode Description
addTransition ( MetaborStd\Statemachine\StateInterface $state, MetaborStd\Statemachine\TransitionInterface $transition )
convertObserverToString ( MetaborStd\Event\EventInterface $event ) : string
getLayoutOptions ( ArrayAccess $flaggedObject, array $layout ) : array
getTransitionLabel ( MetaborStd\Statemachine\StateInterface $state, MetaborStd\Statemachine\TransitionInterface $transition ) : string

Method Details

__construct() public méthode

public __construct ( Fhaculty\Graph\Graph $graph, MetaborStd\StringConverterInterface $stringConverter = null )
$graph Fhaculty\Graph\Graph
$stringConverter MetaborStd\StringConverterInterface

addState() public méthode

public addState ( MetaborStd\Statemachine\StateInterface $state )
$state MetaborStd\Statemachine\StateInterface

addStateCollection() public méthode

public addStateCollection ( MetaborStd\Statemachine\StateCollectionInterface $stateCollection )
$stateCollection MetaborStd\Statemachine\StateCollectionInterface

addStates() public méthode

public addStates ( Traversable $states )
$states Traversable

addTransition() protected méthode

protected addTransition ( MetaborStd\Statemachine\StateInterface $state, MetaborStd\Statemachine\TransitionInterface $transition )
$state MetaborStd\Statemachine\StateInterface
$transition MetaborStd\Statemachine\TransitionInterface

attachLayoutCallback() public méthode

public attachLayoutCallback ( Callback $callback )
$callback Metabor\Callback\Callback

convertObserverToString() protected méthode

protected convertObserverToString ( MetaborStd\Event\EventInterface $event ) : string
$event MetaborStd\Event\EventInterface
Résultat string

createStatusVertex() public méthode

public createStatusVertex ( MetaborStd\Statemachine\StateInterface $state ) : Fhaculty\Graph\Vertex
$state MetaborStd\Statemachine\StateInterface
Résultat Fhaculty\Graph\Vertex

detachLayoutCallback() public méthode

public detachLayoutCallback ( Callback $callback )
$callback Metabor\Callback\Callback

getGraph() public méthode

public getGraph ( ) : Fhaculty\Graph\Graph
Résultat Fhaculty\Graph\Graph

getLayoutOptions() protected méthode

protected getLayoutOptions ( ArrayAccess $flaggedObject, array $layout ) : array
$flaggedObject ArrayAccess
$layout array
Résultat array

getTransitionLabel() protected méthode

protected getTransitionLabel ( MetaborStd\Statemachine\StateInterface $state, MetaborStd\Statemachine\TransitionInterface $transition ) : string
$state MetaborStd\Statemachine\StateInterface
$transition MetaborStd\Statemachine\TransitionInterface
Résultat string

setEventLayout() public méthode

public setEventLayout ( string $flag, scalar $value, array $layout )
$flag string
$value scalar
$layout array

setStateLayout() public méthode

public setStateLayout ( string $flag, scalar $value, array $layout )
$flag string
$value scalar
$layout array