1 | <?php |
||
10 | class Customer |
||
11 | { |
||
12 | /** |
||
13 | * The customer ID. |
||
14 | * |
||
15 | * @var integer |
||
16 | * |
||
17 | * @JMS\Type("integer") |
||
18 | * @JMS\SerializedName("customer_id") |
||
19 | */ |
||
20 | protected $customerId; |
||
21 | |||
22 | /** |
||
23 | * The external customer ID. |
||
24 | * |
||
25 | * @var string |
||
26 | * |
||
27 | * @JMS\Type("string") |
||
28 | * @JMS\SerializedName("customer_ext_uid") |
||
29 | */ |
||
30 | protected $customerExternalId; |
||
31 | |||
32 | /** |
||
33 | * Hash. |
||
34 | * |
||
35 | * @var string |
||
36 | * |
||
37 | * @JMS\Type("string") |
||
38 | * @JMS\SerializedName("hash") |
||
39 | */ |
||
40 | protected $hash; |
||
41 | |||
42 | /** |
||
43 | * The own customer number. |
||
44 | * |
||
45 | * @var string |
||
46 | * |
||
47 | * @JMS\Type("string") |
||
48 | * @JMS\SerializedName("customer_number") |
||
49 | */ |
||
50 | protected $customerNumber; |
||
51 | |||
52 | /** |
||
53 | * The company name of the customer. |
||
54 | * |
||
55 | * @var string |
||
56 | * |
||
57 | * @JMS\Type("string") |
||
58 | * @JMS\SerializedName("companyname") |
||
59 | */ |
||
60 | protected $companyName; |
||
61 | |||
62 | /** |
||
63 | * The academic title of the customer. |
||
64 | * |
||
65 | * @var string |
||
66 | * |
||
67 | * @JMS\Type("string") |
||
68 | * @JMS\SerializedName("title") |
||
69 | */ |
||
70 | protected $title; |
||
71 | |||
72 | /** |
||
73 | * The salutation of the customer. |
||
74 | * |
||
75 | * @var string |
||
76 | * |
||
77 | * @JMS\Type("string") |
||
78 | * @JMS\SerializedName("salutation") |
||
79 | */ |
||
80 | protected $salutation; |
||
81 | |||
82 | /** |
||
83 | * The first name of the customer. |
||
84 | * |
||
85 | * @var string |
||
86 | * |
||
87 | * @JMS\Type("string") |
||
88 | * @JMS\SerializedName("firstname") |
||
89 | */ |
||
90 | protected $firstName; |
||
91 | |||
92 | /** |
||
93 | * The last name of the customer. |
||
94 | * |
||
95 | * @var string |
||
96 | * |
||
97 | * @JMS\Type("string") |
||
98 | * @JMS\SerializedName("lastname") |
||
99 | */ |
||
100 | protected $lastName; |
||
101 | |||
102 | /** |
||
103 | * The address of the customer. |
||
104 | * |
||
105 | * @var string |
||
106 | * |
||
107 | * @JMS\Type("string") |
||
108 | * @JMS\SerializedName("address") |
||
109 | */ |
||
110 | protected $address; |
||
111 | |||
112 | /** |
||
113 | * The second row of an address of the customer. |
||
114 | * |
||
115 | * @var string |
||
116 | * |
||
117 | * @JMS\Type("string") |
||
118 | * @JMS\SerializedName("address_2") |
||
119 | */ |
||
120 | protected $address2; |
||
121 | |||
122 | /** |
||
123 | * The zip code of the customer. |
||
124 | * |
||
125 | * @var string |
||
126 | * |
||
127 | * @JMS\Type("string") |
||
128 | * @JMS\SerializedName("zipcode") |
||
129 | */ |
||
130 | protected $zipCode; |
||
131 | |||
132 | /** |
||
133 | * The city of the customer. |
||
134 | * |
||
135 | * @var string |
||
136 | * |
||
137 | * @JMS\Type("string") |
||
138 | * @JMS\SerializedName("city") |
||
139 | */ |
||
140 | protected $city; |
||
141 | |||
142 | /** |
||
143 | * The country code of the customer. |
||
144 | * |
||
145 | * @var string |
||
146 | * |
||
147 | * @JMS\Type("string") |
||
148 | * @JMS\SerializedName("country_code") |
||
149 | */ |
||
150 | protected $countryCode; |
||
151 | |||
152 | /** |
||
153 | * The email address of the customer. |
||
154 | * |
||
155 | * @var string |
||
156 | * |
||
157 | * @JMS\Type("string") |
||
158 | * @JMS\SerializedName("email") |
||
159 | */ |
||
160 | protected $email; |
||
161 | |||
162 | /** |
||
163 | * The phone number of the customer. |
||
164 | * |
||
165 | * @var string |
||
166 | * @JMS\Type("string") |
||
167 | * @JMS\SerializedName("phone") |
||
168 | */ |
||
169 | protected $phone; |
||
170 | |||
171 | /** |
||
172 | * The payment data URL. |
||
173 | * |
||
174 | * @var string |
||
175 | * |
||
176 | * @JMS\Type("string") |
||
177 | * @JMS\SerializedName("payment_data_url") |
||
178 | */ |
||
179 | protected $paymentDataUrl; |
||
180 | |||
181 | /** |
||
182 | * The dashboard URL. |
||
183 | * |
||
184 | * @var string |
||
185 | * |
||
186 | * @JMS\Type("string") |
||
187 | * @JMS\SerializedName("dashboard_url") |
||
188 | */ |
||
189 | protected $dashboardUrl; |
||
190 | |||
191 | /** |
||
192 | * @return int |
||
193 | */ |
||
194 | public function getCustomerId() |
||
198 | |||
199 | /** |
||
200 | * @param int $customerId |
||
201 | * @return Customer |
||
202 | */ |
||
203 | public function setCustomerId($customerId) |
||
209 | |||
210 | /** |
||
211 | * Get the customer external ID. |
||
212 | * |
||
213 | * @return int |
||
214 | */ |
||
215 | public function getCustomerExternalId() |
||
219 | |||
220 | /** |
||
221 | * Set the customer external ID. |
||
222 | * |
||
223 | * @param int $customerExternalId The customer external ID. |
||
224 | * @return Customer |
||
225 | */ |
||
226 | public function setCustomerExternalId($customerExternalId) |
||
232 | |||
233 | /** |
||
234 | * Get the hash. |
||
235 | * |
||
236 | * @return string |
||
237 | */ |
||
238 | public function getHash() |
||
242 | |||
243 | /** |
||
244 | * Set the hash. |
||
245 | * |
||
246 | * @param string $hash The hash. |
||
247 | * @return Customer |
||
248 | */ |
||
249 | public function setHash($hash) |
||
255 | |||
256 | /** |
||
257 | * Get the customer number. |
||
258 | * |
||
259 | * @return int The customer number. |
||
260 | */ |
||
261 | public function getCustomerNumber() |
||
265 | |||
266 | /** |
||
267 | * Set the customer number. |
||
268 | * |
||
269 | * @param int $customerNumber The customer number. |
||
270 | * @return Customer |
||
271 | */ |
||
272 | public function setCustomerNumber($customerNumber) |
||
278 | |||
279 | /** |
||
280 | * Get the company name. |
||
281 | * |
||
282 | * @return string |
||
283 | */ |
||
284 | public function getCompanyName() |
||
288 | |||
289 | /** |
||
290 | * Set the company name. |
||
291 | * |
||
292 | * @param string $companyName The company name. |
||
293 | * @return Customer |
||
294 | */ |
||
295 | public function setCompanyName($companyName) |
||
301 | |||
302 | /** |
||
303 | * Get the title. |
||
304 | * |
||
305 | * @return string |
||
306 | */ |
||
307 | public function getTitle() |
||
311 | |||
312 | /** |
||
313 | * Set the title. |
||
314 | * |
||
315 | * @param string $title The title. |
||
316 | * @return Customer |
||
317 | */ |
||
318 | public function setTitle($title) |
||
324 | |||
325 | /** |
||
326 | * Get the salutation. |
||
327 | * |
||
328 | * @return string |
||
329 | */ |
||
330 | public function getSalutation() |
||
334 | |||
335 | /** |
||
336 | * Set the salutation. |
||
337 | * |
||
338 | * @param string $salutation The salutation. |
||
339 | * @return Customer |
||
340 | */ |
||
341 | public function setSalutation($salutation) |
||
347 | |||
348 | /** |
||
349 | * Get the first name. |
||
350 | * |
||
351 | * @return string |
||
352 | */ |
||
353 | public function getFirstName() |
||
357 | |||
358 | /** |
||
359 | * Set the first name. |
||
360 | * |
||
361 | * @param string $firstName The first name. |
||
362 | * @return Customer |
||
363 | */ |
||
364 | public function setFirstName($firstName) |
||
370 | |||
371 | /** |
||
372 | * Get the last name. |
||
373 | * |
||
374 | * @return string |
||
375 | */ |
||
376 | public function getLastName() |
||
380 | |||
381 | /** |
||
382 | * Set the last name. |
||
383 | * |
||
384 | * @param string $lastName The last name. |
||
385 | * @return Customer |
||
386 | */ |
||
387 | public function setLastName($lastName) |
||
393 | |||
394 | /** |
||
395 | * Get the address. |
||
396 | * |
||
397 | * @return string |
||
398 | */ |
||
399 | public function getAddress() |
||
403 | |||
404 | /** |
||
405 | * Set the address. |
||
406 | * |
||
407 | * @param string $address The address. |
||
408 | * @return Customer |
||
409 | */ |
||
410 | public function setAddress($address) |
||
416 | |||
417 | /** |
||
418 | * Get the address2. |
||
419 | * |
||
420 | * @return string |
||
421 | */ |
||
422 | public function getAddress2() |
||
426 | |||
427 | /** |
||
428 | * Set the address2. |
||
429 | * |
||
430 | * @param string $address2 The address2. |
||
431 | * @return Customer |
||
432 | */ |
||
433 | public function setAddress2($address2) |
||
439 | |||
440 | /** |
||
441 | * Get the zip code. |
||
442 | * |
||
443 | * @return string |
||
444 | */ |
||
445 | public function getZipCode() |
||
449 | |||
450 | /** |
||
451 | * Set the zip code. |
||
452 | * |
||
453 | * @param string $zipCode The zip code. |
||
454 | * @return Customer |
||
455 | */ |
||
456 | public function setZipCode($zipCode) |
||
462 | |||
463 | /** |
||
464 | * Get the city. |
||
465 | * |
||
466 | * @return string |
||
467 | */ |
||
468 | public function getCity() |
||
472 | |||
473 | /** |
||
474 | * Set the city. |
||
475 | * |
||
476 | * @param string $city The city. |
||
477 | * @return Customer |
||
478 | */ |
||
479 | public function setCity($city) |
||
485 | |||
486 | /** |
||
487 | * Get the country code. |
||
488 | * |
||
489 | * @return string |
||
490 | */ |
||
491 | public function getCountryCode() |
||
495 | |||
496 | /** |
||
497 | * Set the country code. |
||
498 | * |
||
499 | * @param string $countryCode The country code. |
||
500 | * @return Customer |
||
501 | */ |
||
502 | public function setCountryCode($countryCode) |
||
508 | |||
509 | /** |
||
510 | * Get the email. |
||
511 | * |
||
512 | * @return string |
||
513 | */ |
||
514 | public function getEmail() |
||
518 | |||
519 | /** |
||
520 | * Set the email. |
||
521 | * |
||
522 | * @param string $email The email. |
||
523 | * @return Customer |
||
524 | */ |
||
525 | public function setEmail($email) |
||
531 | |||
532 | /** |
||
533 | * Get the phone number of the customer. |
||
534 | * |
||
535 | * @return string |
||
536 | */ |
||
537 | public function getPhone() |
||
541 | |||
542 | /** |
||
543 | * Set the phone number of the customer. |
||
544 | * |
||
545 | * @param string $phone The phone number to set. |
||
546 | * @return $this |
||
547 | */ |
||
548 | public function setPhone($phone) |
||
554 | |||
555 | /** |
||
556 | * Get the payment data URL. |
||
557 | * |
||
558 | * @return string |
||
559 | */ |
||
560 | public function getPaymentDataUrl() |
||
564 | |||
565 | /** |
||
566 | * Set the payment data URL. |
||
567 | * |
||
568 | * @param string $paymentDataUrl The payment data URL. |
||
569 | * @return Customer |
||
570 | */ |
||
571 | public function setPaymentDataUrl($paymentDataUrl) |
||
577 | |||
578 | /** |
||
579 | * Get the dashboard URL. |
||
580 | * |
||
581 | * @return string |
||
582 | */ |
||
583 | public function getDashboardUrl() |
||
587 | |||
588 | /** |
||
589 | * Set the dashboard URL. |
||
590 | * |
||
591 | * @param string $dashboardUrl The dashboard URL. |
||
592 | * @return Customer |
||
593 | */ |
||
594 | public function setDashboardUrl($dashboardUrl) |
||
600 | } |
||
601 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.