1 | <?php |
||
20 | class StepItem extends AbstractFormzConfiguration |
||
21 | { |
||
22 | use StoreArrayIndexTrait; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | * @validate IntegerValidator |
||
27 | * @validate Romm.Formz:PageExists |
||
28 | */ |
||
29 | protected $pageUid; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $extension; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $controller; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | * @validate NotEmpty |
||
44 | */ |
||
45 | protected $action; |
||
46 | |||
47 | /** |
||
48 | * @var \Romm\Formz\Configuration\Form\Step\Step\SupportedField[] |
||
49 | */ |
||
50 | protected $supportedFields; |
||
51 | |||
52 | /** |
||
53 | * Name of the step. By default, it is the key of this step in the array |
||
54 | * containing all the steps for the parent form. |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | private $name; |
||
59 | |||
60 | /** |
||
61 | * @return int |
||
62 | */ |
||
63 | public function getPageUid() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getExtension() |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getController() |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getAction() |
||
91 | |||
92 | /** |
||
93 | * @return SupportedField[] |
||
94 | */ |
||
95 | public function getSupportedFields() |
||
99 | |||
100 | /** |
||
101 | * @param Field $field |
||
102 | * @return bool |
||
103 | */ |
||
104 | public function supportsField(Field $field) |
||
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | public function getName() |
||
126 | |||
127 | /** |
||
128 | * @param string $name |
||
129 | */ |
||
130 | public function setName($name) |
||
134 | } |
||
135 |