80 lines
2.1 KiB
YAML
80 lines
2.1 KiB
YAML
|
name: DefinitionBuilder
|
||
|
class_comment: "# * Builds a definition.\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n\
|
||
|
# * @author Gr\xE9goire Pineau <lyrixx@lyrixx.info>\n# * @author Tobias Nyholm <tobias.nyholm@gmail.com>"
|
||
|
dependencies:
|
||
|
- name: MetadataStoreInterface
|
||
|
type: class
|
||
|
source: Symfony\Component\Workflow\Metadata\MetadataStoreInterface
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: __construct
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: places
|
||
|
default: '[]'
|
||
|
- name: transitions
|
||
|
default: '[]'
|
||
|
comment: "# * Builds a definition.\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n\
|
||
|
# * @author Gr\xE9goire Pineau <lyrixx@lyrixx.info>\n# * @author Tobias Nyholm\
|
||
|
\ <tobias.nyholm@gmail.com>\n# */\n# class DefinitionBuilder\n# {\n# private array\
|
||
|
\ $places = [];\n# private array $transitions = [];\n# private string|array|null\
|
||
|
\ $initialPlaces = null;\n# private ?MetadataStoreInterface $metadataStore = null;\n\
|
||
|
# \n# /**\n# * @param string[] $places\n# * @param Transition[] $transitions"
|
||
|
- name: build
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: null
|
||
|
- name: clear
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Clear all data in the builder.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: setInitialPlaces
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: initialPlaces
|
||
|
comment: '# * @param string|string[]|null $initialPlaces
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: addPlace
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: place
|
||
|
comment: '# * @return $this'
|
||
|
- name: addPlaces
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: places
|
||
|
comment: '# * @param string[] $places
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: addTransitions
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: transitions
|
||
|
comment: '# * @param Transition[] $transitions
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: addTransition
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: transition
|
||
|
comment: '# * @return $this'
|
||
|
- name: setMetadataStore
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: metadataStore
|
||
|
comment: '# * @return $this'
|
||
|
traits:
|
||
|
- Symfony\Component\Workflow\Metadata\MetadataStoreInterface
|
||
|
interfaces: []
|