class DefinitionBuilder

Builds a definition.

Methods

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

No description

build()

No description

$this
clear()

Clear all data in the builder.

$this
setInitialPlace(string $place)

No description

$this
addPlace(string $place)

No description

$this
addPlaces(array $places)

No description

$this
addTransitions(array $transitions)

No description

$this
addTransition(Transition $transition)

No description

$this
setMetadataStore(MetadataStoreInterface $metadataStore)

No description

$this
reset() deprecated

No description

Details

at line 34
__construct(array $places = [], array $transitions = [])

Parameters

array $places
array $transitions

at line 43
Definition build()

Return Value

Definition

at line 53
$this clear()

Clear all data in the builder.

Return Value

$this

at line 68
$this setInitialPlace(string $place)

Parameters

string $place

Return Value

$this

at line 80
$this addPlace(string $place)

Parameters

string $place

Return Value

$this

at line 96
$this addPlaces(array $places)

Parameters

array $places

Return Value

$this

at line 110
$this addTransitions(array $transitions)

Parameters

array $transitions

Return Value

$this

at line 122
$this addTransition(Transition $transition)

Parameters

Transition $transition

Return Value

$this

at line 132
$this setMetadataStore(MetadataStoreInterface $metadataStore)

Parameters

MetadataStoreInterface $metadataStore

Return Value

$this

at line 144
$this reset() deprecated

deprecated since Symfony 4.1, use the clear() method instead.

Return Value

$this