1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* LeadCommerce\Shopware\SDK\Entity |
4
|
|
|
* |
5
|
|
|
* Copyright 2016 LeadCommerce |
6
|
|
|
* |
7
|
|
|
* @author Alexander Mahrt <[email protected]> |
8
|
|
|
* @copyright 2016 LeadCommerce <[email protected]> |
9
|
|
|
*/ |
10
|
|
|
namespace LeadCommerce\Shopware\SDK\Entity; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Class Shipping |
14
|
|
|
*/ |
15
|
|
|
class Shipping extends Base |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @var int |
19
|
|
|
*/ |
20
|
|
|
protected $id; |
21
|
|
|
/** |
22
|
|
|
* @var int |
23
|
|
|
*/ |
24
|
|
|
protected $customerId; |
25
|
|
|
/** |
26
|
|
|
* @var int |
27
|
|
|
*/ |
28
|
|
|
protected $countryId; |
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $stateId; |
33
|
|
|
/** |
34
|
|
|
* @var string |
35
|
|
|
*/ |
36
|
|
|
protected $company; |
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
protected $department; |
41
|
|
|
/** |
42
|
|
|
* @var string |
43
|
|
|
*/ |
44
|
|
|
protected $salutation; |
45
|
|
|
/** |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
protected $number; |
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
protected $firstName; |
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
*/ |
56
|
|
|
protected $lastName; |
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
protected $street; |
61
|
|
|
/** |
62
|
|
|
* @var string |
63
|
|
|
*/ |
64
|
|
|
protected $streetNumber; |
65
|
|
|
/** |
66
|
|
|
* @var string |
67
|
|
|
*/ |
68
|
|
|
protected $zipCode; |
69
|
|
|
/** |
70
|
|
|
* @var string |
71
|
|
|
*/ |
72
|
|
|
protected $city; |
73
|
|
|
/** |
74
|
|
|
* @var ShippingAttribute |
75
|
|
|
*/ |
76
|
|
|
protected $attribute; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return int |
80
|
|
|
*/ |
81
|
|
|
public function getId() |
82
|
|
|
{ |
83
|
|
|
return $this->id; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param int $id |
88
|
|
|
* |
89
|
|
|
* @return Shipping |
90
|
|
|
*/ |
91
|
|
|
public function setId($id) |
92
|
|
|
{ |
93
|
|
|
$this->id = $id; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return int |
100
|
|
|
*/ |
101
|
|
|
public function getCustomerId() |
102
|
|
|
{ |
103
|
|
|
return $this->customerId; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @param int $customerId |
108
|
|
|
* |
109
|
|
|
* @return Shipping |
110
|
|
|
*/ |
111
|
|
|
public function setCustomerId($customerId) |
112
|
|
|
{ |
113
|
|
|
$this->customerId = $customerId; |
114
|
|
|
|
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return int |
120
|
|
|
*/ |
121
|
|
|
public function getCountryId() |
122
|
|
|
{ |
123
|
|
|
return $this->countryId; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param int $countryId |
128
|
|
|
* |
129
|
|
|
* @return Shipping |
130
|
|
|
*/ |
131
|
|
|
public function setCountryId($countryId) |
132
|
|
|
{ |
133
|
|
|
$this->countryId = $countryId; |
134
|
|
|
|
135
|
|
|
return $this; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return int |
140
|
|
|
*/ |
141
|
|
|
public function getStateId() |
142
|
|
|
{ |
143
|
|
|
return $this->stateId; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param int $stateId |
148
|
|
|
* |
149
|
|
|
* @return Shipping |
150
|
|
|
*/ |
151
|
|
|
public function setStateId($stateId) |
152
|
|
|
{ |
153
|
|
|
$this->stateId = $stateId; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return string |
160
|
|
|
*/ |
161
|
|
|
public function getCompany() |
162
|
|
|
{ |
163
|
|
|
return $this->company; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @param string $company |
168
|
|
|
* |
169
|
|
|
* @return Shipping |
170
|
|
|
*/ |
171
|
|
|
public function setCompany($company) |
172
|
|
|
{ |
173
|
|
|
$this->company = $company; |
174
|
|
|
|
175
|
|
|
return $this; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @return string |
180
|
|
|
*/ |
181
|
|
|
public function getDepartment() |
182
|
|
|
{ |
183
|
|
|
return $this->department; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @param string $department |
188
|
|
|
* |
189
|
|
|
* @return Shipping |
190
|
|
|
*/ |
191
|
|
|
public function setDepartment($department) |
192
|
|
|
{ |
193
|
|
|
$this->department = $department; |
194
|
|
|
|
195
|
|
|
return $this; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return string |
200
|
|
|
*/ |
201
|
|
|
public function getSalutation() |
202
|
|
|
{ |
203
|
|
|
return $this->salutation; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @param string $salutation |
208
|
|
|
* |
209
|
|
|
* @return Shipping |
210
|
|
|
*/ |
211
|
|
|
public function setSalutation($salutation) |
212
|
|
|
{ |
213
|
|
|
$this->salutation = $salutation; |
214
|
|
|
|
215
|
|
|
return $this; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @return string |
220
|
|
|
*/ |
221
|
|
|
public function getNumber() |
222
|
|
|
{ |
223
|
|
|
return $this->number; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param string $number |
228
|
|
|
* |
229
|
|
|
* @return Shipping |
230
|
|
|
*/ |
231
|
|
|
public function setNumber($number) |
232
|
|
|
{ |
233
|
|
|
$this->number = $number; |
234
|
|
|
|
235
|
|
|
return $this; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
/** |
239
|
|
|
* @return string |
240
|
|
|
*/ |
241
|
|
|
public function getFirstName() |
242
|
|
|
{ |
243
|
|
|
return $this->firstName; |
244
|
|
|
} |
245
|
|
|
|
246
|
|
|
/** |
247
|
|
|
* @param string $firstName |
248
|
|
|
* |
249
|
|
|
* @return Shipping |
250
|
|
|
*/ |
251
|
|
|
public function setFirstName($firstName) |
252
|
|
|
{ |
253
|
|
|
$this->firstName = $firstName; |
254
|
|
|
|
255
|
|
|
return $this; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @return string |
260
|
|
|
*/ |
261
|
|
|
public function getLastName() |
262
|
|
|
{ |
263
|
|
|
return $this->lastName; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @param string $lastName |
268
|
|
|
* |
269
|
|
|
* @return Shipping |
270
|
|
|
*/ |
271
|
|
|
public function setLastName($lastName) |
272
|
|
|
{ |
273
|
|
|
$this->lastName = $lastName; |
274
|
|
|
|
275
|
|
|
return $this; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
/** |
279
|
|
|
* @return string |
280
|
|
|
*/ |
281
|
|
|
public function getStreet() |
282
|
|
|
{ |
283
|
|
|
return $this->street; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
/** |
287
|
|
|
* @param string $street |
288
|
|
|
* |
289
|
|
|
* @return Shipping |
290
|
|
|
*/ |
291
|
|
|
public function setStreet($street) |
292
|
|
|
{ |
293
|
|
|
$this->street = $street; |
294
|
|
|
|
295
|
|
|
return $this; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @return string |
300
|
|
|
*/ |
301
|
|
|
public function getStreetNumber() |
302
|
|
|
{ |
303
|
|
|
return $this->streetNumber; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* @param string $streetNumber |
308
|
|
|
* |
309
|
|
|
* @return Shipping |
310
|
|
|
*/ |
311
|
|
|
public function setStreetNumber($streetNumber) |
312
|
|
|
{ |
313
|
|
|
$this->streetNumber = $streetNumber; |
314
|
|
|
|
315
|
|
|
return $this; |
316
|
|
|
} |
317
|
|
|
|
318
|
|
|
/** |
319
|
|
|
* @return string |
320
|
|
|
*/ |
321
|
|
|
public function getZipCode() |
322
|
|
|
{ |
323
|
|
|
return $this->zipCode; |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* @param string $zipCode |
328
|
|
|
* |
329
|
|
|
* @return Shipping |
330
|
|
|
*/ |
331
|
|
|
public function setZipCode($zipCode) |
332
|
|
|
{ |
333
|
|
|
$this->zipCode = $zipCode; |
334
|
|
|
|
335
|
|
|
return $this; |
336
|
|
|
} |
337
|
|
|
|
338
|
|
|
/** |
339
|
|
|
* @return string |
340
|
|
|
*/ |
341
|
|
|
public function getCity() |
342
|
|
|
{ |
343
|
|
|
return $this->city; |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* @param string $city |
348
|
|
|
* |
349
|
|
|
* @return Shipping |
350
|
|
|
*/ |
351
|
|
|
public function setCity($city) |
352
|
|
|
{ |
353
|
|
|
$this->city = $city; |
354
|
|
|
|
355
|
|
|
return $this; |
356
|
|
|
} |
357
|
|
|
|
358
|
|
|
/** |
359
|
|
|
* @return ShippingAttribute |
360
|
|
|
*/ |
361
|
|
|
public function getAttribute() |
362
|
|
|
{ |
363
|
|
|
return $this->attribute; |
364
|
|
|
} |
365
|
|
|
|
366
|
|
|
/** |
367
|
|
|
* @param ShippingAttribute $attribute |
368
|
|
|
* |
369
|
|
|
* @return Shipping |
370
|
|
|
*/ |
371
|
|
|
public function setAttribute($attribute) |
372
|
|
|
{ |
373
|
|
|
$this->attribute = $attribute; |
374
|
|
|
|
375
|
|
|
return $this; |
376
|
|
|
} |
377
|
|
|
} |
378
|
|
|
|