1 | <?php |
||
21 | class StepDefinition extends AbstractFormDefinitionComponent |
||
22 | { |
||
23 | use ParentsTrait; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * @validate NotEmpty |
||
28 | */ |
||
29 | protected $step; |
||
30 | |||
31 | /** |
||
32 | * @var \Romm\Formz\Form\Definition\Step\Step\StepDefinition |
||
33 | */ |
||
34 | protected $next; |
||
35 | |||
36 | /** |
||
37 | * @var \Romm\Formz\Form\Definition\Step\Step\ConditionalStepDefinition[] |
||
38 | */ |
||
39 | protected $detour; |
||
40 | |||
41 | /** |
||
42 | * @var \Romm\Formz\Form\Definition\Step\Step\ConditionalStepDefinition[] |
||
43 | */ |
||
44 | protected $divergence; |
||
45 | |||
46 | /** |
||
47 | * @return Step |
||
48 | */ |
||
49 | public function getStep() |
||
58 | |||
59 | public function getStepLevel() |
||
79 | |||
80 | public function getStepWeight() |
||
93 | |||
94 | /** |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function hasNextStep() |
||
103 | |||
104 | /** |
||
105 | * @return StepDefinition |
||
106 | * @throws EntryNotFoundException |
||
107 | */ |
||
108 | public function getNextStep() |
||
116 | |||
117 | /** |
||
118 | * @return bool |
||
119 | */ |
||
120 | public function hasPreviousDefinition() |
||
124 | |||
125 | /** |
||
126 | * @return StepDefinition |
||
127 | * @throws EntryNotFoundException |
||
128 | */ |
||
129 | public function getPreviousDefinition() |
||
140 | |||
141 | /** |
||
142 | * @return ConditionalStepDefinition[] |
||
143 | */ |
||
144 | public function getDetourSteps() |
||
148 | |||
149 | /** |
||
150 | * @return bool |
||
151 | */ |
||
152 | public function hasDetour() |
||
156 | |||
157 | /** |
||
158 | * @return bool |
||
159 | */ |
||
160 | public function isInDetour() |
||
165 | |||
166 | public function getDetourRootStep() |
||
183 | |||
184 | /** |
||
185 | * @return ConditionalStepDefinition[] |
||
186 | */ |
||
187 | public function getDivergenceSteps() |
||
191 | |||
192 | /** |
||
193 | * @return bool |
||
194 | */ |
||
195 | public function hasDivergence() |
||
199 | } |
||
200 |