class DefinitionBuilder

Builds a definition.

Methods

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

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

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

Parameters

array $places
array $transitions

Definition build()

Return Value

Definition

$this clear()

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

$this setMetadataStore(MetadataStoreInterface $metadataStore)

Parameters

MetadataStoreInterface $metadataStore

Return Value

$this

$this reset() deprecated

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

Return Value

$this