1 | <?php |
||
22 | class Step extends AbstractFormzConfiguration implements DataPreProcessorInterface |
||
23 | { |
||
24 | use ParentsTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | * @validate NotEmpty |
||
29 | */ |
||
30 | protected $name; |
||
31 | |||
32 | /** |
||
33 | * @var int |
||
34 | * @validate IntegerValidator |
||
35 | * @validate Romm.Formz:PageExists |
||
36 | */ |
||
37 | protected $pageUid; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $extension; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $controller; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | * @validate NotEmpty |
||
52 | */ |
||
53 | protected $action; |
||
54 | |||
55 | /** |
||
56 | * @var \Romm\Formz\Configuration\Form\Step\Step\SupportedField[] |
||
57 | */ |
||
58 | protected $supportedFields; |
||
59 | |||
60 | /** |
||
61 | * @var \Romm\Formz\Configuration\Form\Step\Step\NextSteps |
||
62 | */ |
||
63 | protected $next; |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getName() |
||
72 | |||
73 | /** |
||
74 | * @return int |
||
75 | */ |
||
76 | public function getPageUid() |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getExtension() |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getController() |
||
96 | |||
97 | /** |
||
98 | * @return string |
||
99 | */ |
||
100 | public function getAction() |
||
104 | |||
105 | /** |
||
106 | * @return SupportedField[] |
||
107 | */ |
||
108 | public function getSupportedFields() |
||
112 | |||
113 | /** |
||
114 | * @param Field $field |
||
115 | * @return bool |
||
116 | */ |
||
117 | public function supportsField(Field $field) |
||
127 | |||
128 | /** |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function hasNextStep() |
||
135 | |||
136 | /** |
||
137 | * @return NextSteps |
||
138 | */ |
||
139 | public function getNextStep() |
||
147 | |||
148 | /** |
||
149 | * @return bool |
||
150 | */ |
||
151 | public function hasPreviousStep() |
||
155 | |||
156 | /** |
||
157 | * @return Step |
||
158 | */ |
||
159 | public function getPreviousStep() |
||
170 | |||
171 | /** |
||
172 | * @todo |
||
173 | * |
||
174 | * @param DataPreProcessor $processor |
||
175 | */ |
||
176 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
197 | } |
||
198 |