DefinitionBuilder

class DefinitionBuilder

Builds a definition.

Methods

__construct(array $places = array(), array $transitions = array())
Definition build()
$this reset()

Clear all data in the builder.

$this setInitialPlace(string $place)
$this addPlace(string $place)
$this addPlaces(array $places)
$this addTransitions(array $transitions)
$this addTransition(Transition $transition)

Details

__construct(array $places = array(), array $transitions = array())

Parameters

array $places
array $transitions

Definition build()

Return Value

Definition

$this reset()

Clear all data in the builder.

Return Value

$this

$this setInitialPlace(string $place)

Parameters

string $place

Return Value

$this

$this addPlace(string $place)

Parameters

string $place

Return Value

$this

$this addPlaces(array $places)

Parameters

array $places

Return Value

$this

$this addTransitions(array $transitions)

Parameters

array $transitions

Return Value

$this

$this addTransition(Transition $transition)

Parameters

Transition $transition

Return Value

$this

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Workflow/DefinitionBuilder.html