1 | <?php |
||
19 | class FormObjectRequestData |
||
20 | { |
||
21 | /** |
||
22 | * @var HashService |
||
23 | */ |
||
24 | protected $hashService; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $data = []; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $formHash; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $currentStepIdentifier; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $contentObjectTable; |
||
45 | |||
46 | /** |
||
47 | * @var int |
||
48 | */ |
||
49 | protected $contentObjectUid; |
||
50 | |||
51 | /** |
||
52 | * The given argument must be a string, hashed with the hash service, and |
||
53 | * must contain an instance of this class. The data will be fetched from the |
||
54 | * instance, and injected in the actual class. |
||
55 | * |
||
56 | * @param string $hash |
||
57 | */ |
||
58 | public function fillFromHash($hash) |
||
68 | |||
69 | /** |
||
70 | * @param string $key |
||
71 | * @param mixed $value |
||
72 | */ |
||
73 | public function addData($key, $value) |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function getData() |
||
85 | |||
86 | /** |
||
87 | * @param string $key |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function hasData($key) |
||
94 | |||
95 | /** |
||
96 | * @param string $key |
||
97 | * @return mixed |
||
98 | * @throws EntryNotFoundException |
||
99 | */ |
||
100 | public function getDataValue($key) |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getFormHash() |
||
116 | |||
117 | /** |
||
118 | * @param string $formHash |
||
119 | */ |
||
120 | public function setFormHash($formHash) |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getCurrentStepIdentifier() |
||
132 | |||
133 | /** |
||
134 | * @param string $currentStepIdentifier |
||
135 | */ |
||
136 | public function setCurrentStepIdentifier($currentStepIdentifier) |
||
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | public function getContentObjectTable() |
||
148 | |||
149 | /** |
||
150 | * @param string $contentObjectTable |
||
151 | */ |
||
152 | public function setContentObjectTable($contentObjectTable) |
||
156 | |||
157 | /** |
||
158 | * @return int |
||
159 | */ |
||
160 | public function getContentObjectUid() |
||
164 | |||
165 | /** |
||
166 | * @param int $contentObjectUid |
||
167 | */ |
||
168 | public function setContentObjectUid($contentObjectUid) |
||
172 | |||
173 | /** |
||
174 | * @param HashService $hashService |
||
175 | */ |
||
176 | public function injectHashService(HashService $hashService) |
||
180 | |||
181 | /** |
||
182 | * @return array |
||
183 | */ |
||
184 | public function toArray() |
||
197 | } |
||
198 |