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 $contentObjectTable; |
||
35 | |||
36 | /** |
||
37 | * @var int |
||
38 | */ |
||
39 | protected $contentObjectUid; |
||
40 | |||
41 | /** |
||
42 | * The given argument must be a string, hashed with the hash service, and |
||
43 | * must contain an instance of this class. The data will be fetched from the |
||
44 | * instance, and injected in the actual class. |
||
45 | * |
||
46 | * @param string $hash |
||
47 | */ |
||
48 | public function fillFromHash($hash) |
||
58 | |||
59 | /** |
||
60 | * @param string $key |
||
61 | * @param mixed $value |
||
62 | */ |
||
63 | public function addData($key, $value) |
||
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | */ |
||
71 | public function getData() |
||
75 | |||
76 | /** |
||
77 | * @param string $key |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function hasData($key) |
||
84 | |||
85 | /** |
||
86 | * @param string $key |
||
87 | * @return mixed |
||
88 | * @throws EntryNotFoundException |
||
89 | */ |
||
90 | public function getDataValue($key) |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getContentObjectTable() |
||
106 | |||
107 | /** |
||
108 | * @param string $contentObjectTable |
||
109 | */ |
||
110 | public function setContentObjectTable($contentObjectTable) |
||
114 | |||
115 | /** |
||
116 | * @return int |
||
117 | */ |
||
118 | public function getContentObjectUid() |
||
122 | |||
123 | /** |
||
124 | * @param int $contentObjectUid |
||
125 | */ |
||
126 | public function setContentObjectUid($contentObjectUid) |
||
130 | |||
131 | /** |
||
132 | * @param HashService $hashService |
||
133 | */ |
||
134 | public function injectHashService(HashService $hashService) |
||
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | public function toArray() |
||
155 | } |
||
156 |