W3cubDocs

/Symfony 4.1

DefinitionBuilder

class DefinitionBuilder

Builds a definition.

Methods

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

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)
$this setMetadataStore(MetadataStoreInterface $metadataStore)
$this reset() deprecated

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

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