Total Complexity | 25 |
Total Lines | 226 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ItemContainer extends AbstractContainer |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $id; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $pr; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | protected $no; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $de; |
||
33 | |||
34 | /** |
||
35 | * Artikeltyp (Enum) |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $it; |
||
40 | |||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | protected $va; |
||
45 | |||
46 | /** |
||
47 | * DeliveryDate (YYYYMMDD) |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $sd; |
||
52 | |||
53 | /** |
||
54 | * Lieferzeitraums-Ende (YYYYMMDD) |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $ed; |
||
59 | |||
60 | /** |
||
61 | * @param int $key |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | public function toArrayByKey($key) |
||
66 | { |
||
67 | $data = []; |
||
68 | if (isset($this->id)) { |
||
69 | $data['id[' . $key . ']'] = $this->getId(); |
||
70 | } |
||
71 | if (isset($this->pr)) { |
||
72 | $data['pr[' . $key . ']'] = $this->getPr(); |
||
73 | } |
||
74 | if (isset($this->no)) { |
||
75 | $data['no[' . $key . ']'] = $this->getNo(); |
||
76 | } |
||
77 | if (isset($this->de)) { |
||
78 | $data['de[' . $key . ']'] = $this->getDe(); |
||
79 | } |
||
80 | if (isset($this->it)) { |
||
81 | $data['it[' . $key . ']'] = $this->getIt(); |
||
82 | } |
||
83 | if (isset($this->va)) { |
||
84 | $data['va[' . $key . ']'] = $this->getVa(); |
||
85 | } |
||
86 | if (isset($this->sd)) { |
||
87 | $data['sd[' . $key . ']'] = $this->getSd(); |
||
88 | } |
||
89 | if (isset($this->ed)) { |
||
90 | $data['ed[' . $key . ']'] = $this->getEd(); |
||
91 | } |
||
92 | |||
93 | return $data; |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * @param string $de |
||
98 | * |
||
99 | * @return void |
||
100 | */ |
||
101 | public function setDe($de): void |
||
102 | { |
||
103 | $this->de = $de; |
||
104 | } |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getDe() |
||
110 | { |
||
111 | return $this->de; |
||
112 | } |
||
113 | |||
114 | /** |
||
115 | * @param string $ed |
||
116 | * |
||
117 | * @return void |
||
118 | */ |
||
119 | public function setEd($ed): void |
||
120 | { |
||
121 | $this->ed = $ed; |
||
122 | } |
||
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getEd() |
||
128 | { |
||
129 | return $this->ed; |
||
130 | } |
||
131 | |||
132 | /** |
||
133 | * @param string $id |
||
134 | * |
||
135 | * @return void |
||
136 | */ |
||
137 | public function setId($id): void |
||
138 | { |
||
139 | $this->id = $id; |
||
140 | } |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getId() |
||
146 | { |
||
147 | return $this->id; |
||
148 | } |
||
149 | |||
150 | /** |
||
151 | * @param int $no |
||
152 | * |
||
153 | * @return void |
||
154 | */ |
||
155 | public function setNo($no): void |
||
156 | { |
||
157 | $this->no = $no; |
||
158 | } |
||
159 | |||
160 | /** |
||
161 | * @return int |
||
162 | */ |
||
163 | public function getNo() |
||
164 | { |
||
165 | return $this->no; |
||
166 | } |
||
167 | |||
168 | /** |
||
169 | * @param int $pr |
||
170 | * |
||
171 | * @return void |
||
172 | */ |
||
173 | public function setPr($pr): void |
||
174 | { |
||
175 | $this->pr = $pr; |
||
176 | } |
||
177 | |||
178 | /** |
||
179 | * @return int |
||
180 | */ |
||
181 | public function getPr() |
||
182 | { |
||
183 | return $this->pr; |
||
184 | } |
||
185 | |||
186 | /** |
||
187 | * @param string $sd |
||
188 | * |
||
189 | * @return void |
||
190 | */ |
||
191 | public function setSd($sd): void |
||
192 | { |
||
193 | $this->sd = $sd; |
||
194 | } |
||
195 | |||
196 | /** |
||
197 | * @return string |
||
198 | */ |
||
199 | public function getSd() |
||
200 | { |
||
201 | return $this->sd; |
||
202 | } |
||
203 | |||
204 | /** |
||
205 | * @param int $va |
||
206 | * |
||
207 | * @return void |
||
208 | */ |
||
209 | public function setVa($va): void |
||
212 | } |
||
213 | |||
214 | /** |
||
215 | * @return int |
||
216 | */ |
||
217 | public function getVa() |
||
220 | } |
||
221 | |||
222 | /** |
||
223 | * @param string $it |
||
224 | * |
||
225 | * @return void |
||
226 | */ |
||
227 | public function setIt($it): void |
||
230 | } |
||
231 | |||
232 | /** |
||
233 | * @return string |
||
234 | */ |
||
235 | public function getIt() |
||
238 | } |
||
239 | } |
||
240 |