1 | <?php |
||
19 | class SubstepDefinition extends AbstractFormDefinition |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | * @validate NotEmpty |
||
24 | */ |
||
25 | protected $substep; |
||
26 | |||
27 | /** |
||
28 | * @var \Romm\Formz\Form\Definition\Step\Step\Substep\SubstepDefinition |
||
29 | */ |
||
30 | protected $next; |
||
31 | |||
32 | /** |
||
33 | * @var \Romm\Formz\Form\Definition\Step\Step\Substep\ConditionalSubstepDefinition[] |
||
34 | */ |
||
35 | protected $detour; |
||
36 | |||
37 | /** |
||
38 | * @var \Romm\Formz\Form\Definition\Step\Step\Substep\ConditionalSubstepDefinition[] |
||
39 | */ |
||
40 | protected $divergence; |
||
41 | |||
42 | /** |
||
43 | * @return Substep |
||
44 | */ |
||
45 | public function getSubstep() |
||
54 | |||
55 | public function getUniqueIdentifier() |
||
73 | |||
74 | /** |
||
75 | * @todo |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function isLast() |
||
85 | |||
86 | /** |
||
87 | * @return bool |
||
88 | */ |
||
89 | public function hasNextSubsteps() |
||
93 | |||
94 | /** |
||
95 | * @return SubstepDefinition |
||
96 | */ |
||
97 | public function getNextSubsteps() |
||
105 | |||
106 | /** |
||
107 | * @return ConditionalSubstepDefinition[] |
||
108 | */ |
||
109 | public function getDetourSubsteps() |
||
113 | |||
114 | /** |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function hasDetour() |
||
121 | |||
122 | /** |
||
123 | * @return ConditionalSubstepDefinition[] |
||
124 | */ |
||
125 | public function getDivergenceSubsteps() |
||
129 | |||
130 | /** |
||
131 | * @return bool |
||
132 | */ |
||
133 | public function hasDivergence() |
||
137 | } |
||
138 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: