DefinitionBuilder
class DefinitionBuilder
Создаёт определение.
Методы
| __construct(array $places = array(), array $transitions = array()) | ||
| Definition | build() | |
| $this | reset() Очистить все данные в билдере. | |
| $this | setInitialPlace(string $place) | |
| $this | addPlace(string $place) | |
| $this | addPlaces(array $places) | |
| $this | addTransitions(array $transitions) | |
| $this | addTransition(Transition $transition) |
Детали
__construct(array $places = array(), array $transitions = array())
Параметры
| array | $places | |
| array | $transitions |
Definition build()
Значение возврата
| Definition |
$this reset()
Очистить все данные в билдере.
Значение возврата
| $this |
$this setInitialPlace(string $place)
Параметры
| string | $place |
Значение возврата
| $this |
$this addPlace(string $place)
Параметры
| string | $place |
Значение возврата
| $this |
$this addPlaces(array $places)
Параметры
| array | $places |
Значение возврата
| $this |
$this addTransitions(array $transitions)
Параметры
| array | $transitions |
Значение возврата
| $this |
$this addTransition(Transition $transition)
Параметры
| Transition | $transition |
Значение возврата
| $this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Workflow/DefinitionBuilder.html