Total Complexity | 76 |
Total Lines | 925 |
Duplicated Lines | 0 % |
Changes | 0 |
Complex classes like Properties often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Properties, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class Properties |
||
13 | { |
||
14 | /** |
||
15 | * @var string $publicKey |
||
16 | */ |
||
17 | public $publicKey; |
||
18 | |||
19 | /** |
||
20 | * @var string $privateKey |
||
21 | */ |
||
22 | public $privateKey; |
||
23 | |||
24 | /** |
||
25 | * @var string $currency |
||
26 | */ |
||
27 | public $currency; |
||
28 | |||
29 | /** |
||
30 | * @var string $orderId |
||
31 | */ |
||
32 | public $orderId; |
||
33 | |||
34 | /** |
||
35 | * @var int $amount |
||
36 | */ |
||
37 | public $amount; |
||
38 | |||
39 | /** |
||
40 | * @var string $okUrl |
||
41 | */ |
||
42 | public $okUrl; |
||
43 | |||
44 | /** |
||
45 | * @var string $koUrl |
||
46 | */ |
||
47 | public $nokUrl; |
||
48 | |||
49 | /** |
||
50 | * @var string $name |
||
51 | */ |
||
52 | public $fullName; |
||
53 | |||
54 | /** |
||
55 | * @var string $email |
||
56 | */ |
||
57 | public $email; |
||
58 | /** |
||
59 | * @var string $callbackUrl |
||
60 | */ |
||
61 | public $callbackUrl; |
||
62 | /** |
||
63 | * @var string $cancelUrl |
||
64 | */ |
||
65 | public $cancelledUrl; |
||
66 | /** |
||
67 | * "true" or "false" as strings |
||
68 | * |
||
69 | * @var bool $iFrame |
||
70 | */ |
||
71 | public $iFrame; |
||
72 | /** |
||
73 | * @var string $locale |
||
74 | */ |
||
75 | public $locale; |
||
76 | /** |
||
77 | * @var bool $discount |
||
78 | */ |
||
79 | public $discount; |
||
80 | /** |
||
81 | * @var string $description |
||
82 | */ |
||
83 | public $description; |
||
84 | /** |
||
85 | * @var string $dni |
||
86 | */ |
||
87 | public $dni; |
||
88 | /** |
||
89 | * @var string $mobilePhone |
||
90 | */ |
||
91 | public $mobilePhone; |
||
92 | /** |
||
93 | * @var Address |
||
94 | */ |
||
95 | public $address; |
||
96 | /** |
||
97 | * @var \DateTime $dateOfBirth |
||
98 | */ |
||
99 | public $dateOfBirth; |
||
100 | /** |
||
101 | * "male" or "female" |
||
102 | * |
||
103 | * @var string $loginCustomerGender |
||
104 | */ |
||
105 | public $loginCustomerGender; |
||
106 | /** |
||
107 | * @var string $loginCustomerEmail |
||
108 | */ |
||
109 | public $loginCustomerEmail; |
||
110 | /** |
||
111 | * @var \DateTime $loginCustomerDateOfBirth |
||
112 | */ |
||
113 | public $loginCustomerDateOfBirth; |
||
114 | /** |
||
115 | * @var string $loginCustomerFullName |
||
116 | */ |
||
117 | public $loginCustomerFullName; |
||
118 | /** |
||
119 | * @var \DateTime $loginCustomerMemberSince |
||
120 | */ |
||
121 | public $loginCustomerMemberSince; |
||
122 | /** |
||
123 | * @var int $loginCustomerNumberOfOrders |
||
124 | */ |
||
125 | public $loginCustomerNumberOfOrders; |
||
126 | /** |
||
127 | * @var int $loginCustomerAmountOfOrders |
||
128 | */ |
||
129 | public $loginCustomerAmountOfOrders; |
||
130 | /** |
||
131 | * @var int $loginCustomerNumberOfRefunds |
||
132 | */ |
||
133 | public $loginCustomerNumberOfRefunds; |
||
134 | /** |
||
135 | * @var int $loginCustomerAmountOfRefunds |
||
136 | */ |
||
137 | public $loginCustomerAmountOfRefunds; |
||
138 | /** |
||
139 | * @var Address $billingAddress |
||
140 | */ |
||
141 | public $billingAddress; |
||
142 | /** |
||
143 | * @var string $billingFullName |
||
144 | */ |
||
145 | public $billingFullName; |
||
146 | /** |
||
147 | * @var string $billingMobilePhone |
||
148 | */ |
||
149 | public $billingMobilePhone; |
||
150 | /** |
||
151 | * @var string $billingDni |
||
152 | */ |
||
153 | public $billingDni; |
||
154 | /** |
||
155 | * @var Address $shippingAddress |
||
156 | */ |
||
157 | public $shippingAddress; |
||
158 | /** |
||
159 | * @var string $shippingFullName |
||
160 | */ |
||
161 | public $shippingFullName; |
||
162 | /** |
||
163 | * @var string $shippingMobilePhone |
||
164 | */ |
||
165 | public $shippingMobilePhone; |
||
166 | /** |
||
167 | * @var string $shippingDni |
||
168 | */ |
||
169 | public $shippingDni; |
||
170 | /** |
||
171 | * @var Article[] $articles |
||
172 | */ |
||
173 | public $articles; |
||
174 | /** |
||
175 | * @var array |
||
176 | */ |
||
177 | public $metadata; |
||
178 | |||
179 | /** |
||
180 | * @return string |
||
181 | */ |
||
182 | public function getPublicKey() |
||
183 | { |
||
184 | return $this->publicKey; |
||
185 | } |
||
186 | |||
187 | /** |
||
188 | * @param string $publicKey |
||
189 | * |
||
190 | * @return self |
||
191 | */ |
||
192 | public function setPublicKey($publicKey) |
||
193 | { |
||
194 | $this->publicKey = $publicKey; |
||
195 | |||
196 | return $this; |
||
197 | } |
||
198 | |||
199 | /** |
||
200 | * @return string |
||
201 | */ |
||
202 | public function getPrivateKey() |
||
203 | { |
||
204 | return $this->privateKey; |
||
205 | } |
||
206 | |||
207 | /** |
||
208 | * @param string $privateKey |
||
209 | * |
||
210 | * @return self |
||
211 | */ |
||
212 | public function setPrivateKey($privateKey) |
||
213 | { |
||
214 | $this->privateKey = $privateKey; |
||
215 | |||
216 | return $this; |
||
217 | } |
||
218 | |||
219 | /** |
||
220 | * @return string |
||
221 | */ |
||
222 | public function getCurrency() |
||
223 | { |
||
224 | return $this->currency; |
||
225 | } |
||
226 | |||
227 | /** |
||
228 | * @param string $currency |
||
229 | * |
||
230 | * @return self |
||
231 | */ |
||
232 | public function setCurrency($currency) |
||
233 | { |
||
234 | $this->currency = $currency; |
||
235 | |||
236 | return $this; |
||
237 | } |
||
238 | |||
239 | /** |
||
240 | * @return string |
||
241 | */ |
||
242 | public function getOrderId() |
||
243 | { |
||
244 | return $this->orderId; |
||
245 | } |
||
246 | |||
247 | /** |
||
248 | * @param string $orderId |
||
249 | * |
||
250 | * @return self |
||
251 | */ |
||
252 | public function setOrderId($orderId) |
||
253 | { |
||
254 | $this->orderId = $orderId; |
||
255 | |||
256 | return $this; |
||
257 | } |
||
258 | |||
259 | /** |
||
260 | * @return int |
||
261 | */ |
||
262 | public function getAmount() |
||
263 | { |
||
264 | return $this->amount; |
||
265 | } |
||
266 | |||
267 | /** |
||
268 | * @param int $amount |
||
269 | * |
||
270 | * @return self |
||
271 | */ |
||
272 | public function setAmount($amount) |
||
273 | { |
||
274 | $this->amount = $amount; |
||
275 | |||
276 | return $this; |
||
277 | } |
||
278 | |||
279 | /** |
||
280 | * @return string |
||
281 | */ |
||
282 | public function getOkUrl() |
||
283 | { |
||
284 | return $this->okUrl; |
||
285 | } |
||
286 | |||
287 | /** |
||
288 | * @param string $okUrl |
||
289 | * |
||
290 | * @return self |
||
291 | */ |
||
292 | public function setOkUrl($okUrl) |
||
297 | } |
||
298 | |||
299 | /** |
||
300 | * @return string |
||
301 | */ |
||
302 | public function getNokUrl() |
||
303 | { |
||
304 | return $this->nokUrl; |
||
305 | } |
||
306 | |||
307 | /** |
||
308 | * @param string $nokUrl |
||
309 | * |
||
310 | * @return self |
||
311 | */ |
||
312 | public function setNokUrl($nokUrl) |
||
313 | { |
||
314 | $this->nokUrl = $nokUrl; |
||
315 | |||
316 | return $this; |
||
317 | } |
||
318 | |||
319 | /** |
||
320 | * @return string |
||
321 | */ |
||
322 | public function getFullName() |
||
323 | { |
||
324 | return $this->fullName; |
||
325 | } |
||
326 | |||
327 | /** |
||
328 | * @param string $fullName |
||
329 | * |
||
330 | * @return self |
||
331 | */ |
||
332 | public function setFullName($fullName) |
||
333 | { |
||
334 | $this->fullName = $fullName; |
||
335 | |||
336 | return $this; |
||
337 | } |
||
338 | |||
339 | /** |
||
340 | * @return string |
||
341 | */ |
||
342 | public function getEmail() |
||
343 | { |
||
344 | return $this->email; |
||
345 | } |
||
346 | |||
347 | /** |
||
348 | * @param string $email |
||
349 | * |
||
350 | * @return self |
||
351 | */ |
||
352 | public function setEmail($email) |
||
353 | { |
||
354 | $this->email = $email; |
||
355 | |||
356 | return $this; |
||
357 | } |
||
358 | |||
359 | /** |
||
360 | * @return string |
||
361 | */ |
||
362 | public function getCallbackUrl() |
||
363 | { |
||
364 | return $this->callbackUrl; |
||
365 | } |
||
366 | |||
367 | /** |
||
368 | * @param string $callbackUrl |
||
369 | * |
||
370 | * @return self |
||
371 | */ |
||
372 | public function setCallbackUrl($callbackUrl) |
||
373 | { |
||
374 | $this->callbackUrl = $callbackUrl; |
||
375 | |||
376 | return $this; |
||
377 | } |
||
378 | |||
379 | /** |
||
380 | * @return string |
||
381 | */ |
||
382 | public function getCancelledUrl() |
||
383 | { |
||
384 | return $this->cancelledUrl; |
||
385 | } |
||
386 | |||
387 | /** |
||
388 | * @param string $cancelledUrl |
||
389 | * |
||
390 | * @return self |
||
391 | */ |
||
392 | public function setCancelledUrl($cancelledUrl) |
||
393 | { |
||
394 | $this->cancelledUrl = $cancelledUrl; |
||
395 | |||
396 | return $this; |
||
397 | } |
||
398 | |||
399 | /** |
||
400 | * @return bool |
||
401 | */ |
||
402 | public function isIFrame() |
||
403 | { |
||
404 | return $this->iFrame; |
||
405 | } |
||
406 | |||
407 | /** |
||
408 | * @param bool $iFrame |
||
409 | * |
||
410 | * @return self |
||
411 | */ |
||
412 | public function setIFrame($iFrame) |
||
413 | { |
||
414 | $this->iFrame = $iFrame; |
||
415 | |||
416 | return $this; |
||
417 | } |
||
418 | |||
419 | /** |
||
420 | * @return string |
||
421 | */ |
||
422 | public function getLocale() |
||
423 | { |
||
424 | return $this->locale; |
||
425 | } |
||
426 | |||
427 | /** |
||
428 | * @param string $locale |
||
429 | * |
||
430 | * @return self |
||
431 | */ |
||
432 | public function setLocale($locale) |
||
433 | { |
||
434 | $this->locale = $locale; |
||
435 | |||
436 | return $this; |
||
437 | } |
||
438 | |||
439 | /** |
||
440 | * @return bool |
||
441 | */ |
||
442 | public function isDiscount() |
||
443 | { |
||
444 | return $this->discount; |
||
445 | } |
||
446 | |||
447 | /** |
||
448 | * @param bool $discount |
||
449 | * |
||
450 | * @return self |
||
451 | */ |
||
452 | public function setDiscount($discount) |
||
453 | { |
||
454 | $this->discount = $discount; |
||
455 | |||
456 | return $this; |
||
457 | } |
||
458 | |||
459 | /** |
||
460 | * @return string |
||
461 | */ |
||
462 | public function getDescription() |
||
463 | { |
||
464 | return $this->description; |
||
465 | } |
||
466 | |||
467 | /** |
||
468 | * @param string $description |
||
469 | * |
||
470 | * @return self |
||
471 | */ |
||
472 | public function setDescription($description) |
||
473 | { |
||
474 | $this->description = $description; |
||
475 | |||
476 | return $this; |
||
477 | } |
||
478 | |||
479 | /** |
||
480 | * @return string |
||
481 | */ |
||
482 | public function getDni() |
||
483 | { |
||
484 | return $this->dni; |
||
485 | } |
||
486 | |||
487 | /** |
||
488 | * @param string $dni |
||
489 | * |
||
490 | * @return self |
||
491 | */ |
||
492 | public function setDni($dni) |
||
493 | { |
||
494 | $this->dni = $dni; |
||
495 | |||
496 | return $this; |
||
497 | } |
||
498 | |||
499 | /** |
||
500 | * @return string |
||
501 | */ |
||
502 | public function getMobilePhone() |
||
503 | { |
||
504 | return $this->mobilePhone; |
||
505 | } |
||
506 | |||
507 | /** |
||
508 | * @param string $mobilePhone |
||
509 | * |
||
510 | * @return self |
||
511 | */ |
||
512 | public function setMobilePhone($mobilePhone) |
||
513 | { |
||
514 | $this->mobilePhone = $mobilePhone; |
||
515 | |||
516 | return $this; |
||
517 | } |
||
518 | |||
519 | /** |
||
520 | * @return Address |
||
521 | */ |
||
522 | public function getAddress() |
||
523 | { |
||
524 | return $this->address; |
||
525 | } |
||
526 | |||
527 | /** |
||
528 | * @param Address $address |
||
529 | * |
||
530 | * @return self |
||
531 | */ |
||
532 | public function setAddress($address) |
||
533 | { |
||
534 | $this->address = $address; |
||
535 | |||
536 | return $this; |
||
537 | } |
||
538 | |||
539 | /** |
||
540 | * @return \DateTime |
||
541 | */ |
||
542 | public function getDateOfBirth() |
||
543 | { |
||
544 | return $this->dateOfBirth; |
||
545 | } |
||
546 | |||
547 | /** |
||
548 | * @param \DateTime $dateOfBirth |
||
549 | * |
||
550 | * @return self |
||
551 | */ |
||
552 | public function setDateOfBirth($dateOfBirth) |
||
553 | { |
||
554 | $this->dateOfBirth = $dateOfBirth; |
||
555 | |||
556 | return $this; |
||
557 | } |
||
558 | |||
559 | /** |
||
560 | * @return string |
||
561 | */ |
||
562 | public function getLoginCustomerGender() |
||
563 | { |
||
564 | return $this->loginCustomerGender; |
||
565 | } |
||
566 | |||
567 | /** |
||
568 | * @param string $loginCustomerGender |
||
569 | * |
||
570 | * @return self |
||
571 | */ |
||
572 | public function setLoginCustomerGender($loginCustomerGender) |
||
573 | { |
||
574 | $this->loginCustomerGender = $loginCustomerGender; |
||
575 | |||
576 | return $this; |
||
577 | } |
||
578 | |||
579 | /** |
||
580 | * @return string |
||
581 | */ |
||
582 | public function getLoginCustomerEmail() |
||
583 | { |
||
584 | return $this->loginCustomerEmail; |
||
585 | } |
||
586 | |||
587 | /** |
||
588 | * @param string $loginCustomerEmail |
||
589 | * |
||
590 | * @return self |
||
591 | */ |
||
592 | public function setLoginCustomerEmail($loginCustomerEmail) |
||
593 | { |
||
594 | $this->loginCustomerEmail = $loginCustomerEmail; |
||
595 | |||
596 | return $this; |
||
597 | } |
||
598 | |||
599 | /** |
||
600 | * @return \DateTime |
||
601 | */ |
||
602 | public function getLoginCustomerDateOfBirth() |
||
603 | { |
||
604 | return $this->loginCustomerDateOfBirth; |
||
605 | } |
||
606 | |||
607 | /** |
||
608 | * @param \DateTime $loginCustomerDateOfBirth |
||
609 | * |
||
610 | * @return self |
||
611 | */ |
||
612 | public function setLoginCustomerDateOfBirth($loginCustomerDateOfBirth) |
||
613 | { |
||
614 | $this->loginCustomerDateOfBirth = $loginCustomerDateOfBirth; |
||
615 | |||
616 | return $this; |
||
617 | } |
||
618 | |||
619 | /** |
||
620 | * @return string |
||
621 | */ |
||
622 | public function getLoginCustomerFullName() |
||
623 | { |
||
624 | return $this->loginCustomerFullName; |
||
625 | } |
||
626 | |||
627 | /** |
||
628 | * @param string $loginCustomerFullName |
||
629 | * |
||
630 | * @return self |
||
631 | */ |
||
632 | public function setLoginCustomerFullName($loginCustomerFullName) |
||
633 | { |
||
634 | $this->loginCustomerFullName = $loginCustomerFullName; |
||
635 | |||
636 | return $this; |
||
637 | } |
||
638 | |||
639 | /** |
||
640 | * @return \DateTime |
||
641 | */ |
||
642 | public function getLoginCustomerMemberSince() |
||
643 | { |
||
644 | return $this->loginCustomerMemberSince; |
||
645 | } |
||
646 | |||
647 | /** |
||
648 | * @param \DateTime $loginCustomerMemberSince |
||
649 | * |
||
650 | * @return self |
||
651 | */ |
||
652 | public function setLoginCustomerMemberSince($loginCustomerMemberSince) |
||
657 | } |
||
658 | |||
659 | /** |
||
660 | * @return int |
||
661 | */ |
||
662 | public function getLoginCustomerNumberOfOrders() |
||
663 | { |
||
664 | return $this->loginCustomerNumberOfOrders; |
||
665 | } |
||
666 | |||
667 | /** |
||
668 | * @param int $loginCustomerNumberOfOrders |
||
669 | * |
||
670 | * @return self |
||
671 | */ |
||
672 | public function setLoginCustomerNumberOfOrders($loginCustomerNumberOfOrders) |
||
673 | { |
||
674 | $this->loginCustomerNumberOfOrders = $loginCustomerNumberOfOrders; |
||
675 | |||
676 | return $this; |
||
677 | } |
||
678 | |||
679 | /** |
||
680 | * @return int |
||
681 | */ |
||
682 | public function getLoginCustomerAmountOfOrders() |
||
683 | { |
||
684 | return $this->loginCustomerAmountOfOrders; |
||
685 | } |
||
686 | |||
687 | /** |
||
688 | * @param int $loginCustomerAmountOfOrders |
||
689 | * |
||
690 | * @return self |
||
691 | */ |
||
692 | public function setLoginCustomerAmountOfOrders($loginCustomerAmountOfOrders) |
||
693 | { |
||
694 | $this->loginCustomerAmountOfOrders = $loginCustomerAmountOfOrders; |
||
695 | |||
696 | return $this; |
||
697 | } |
||
698 | |||
699 | /** |
||
700 | * @return int |
||
701 | */ |
||
702 | public function getLoginCustomerNumberOfRefunds() |
||
703 | { |
||
704 | return $this->loginCustomerNumberOfRefunds; |
||
705 | } |
||
706 | |||
707 | /** |
||
708 | * @param int $loginCustomerNumberOfRefunds |
||
709 | * |
||
710 | * @return self |
||
711 | */ |
||
712 | public function setLoginCustomerNumberOfRefunds($loginCustomerNumberOfRefunds) |
||
713 | { |
||
714 | $this->loginCustomerNumberOfRefunds = $loginCustomerNumberOfRefunds; |
||
715 | |||
716 | return $this; |
||
717 | } |
||
718 | |||
719 | /** |
||
720 | * @return int |
||
721 | */ |
||
722 | public function getLoginCustomerAmountOfRefunds() |
||
723 | { |
||
724 | return $this->loginCustomerAmountOfRefunds; |
||
725 | } |
||
726 | |||
727 | /** |
||
728 | * @param int $loginCustomerAmountOfRefunds |
||
729 | * |
||
730 | * @return self |
||
731 | */ |
||
732 | public function setLoginCustomerAmountOfRefunds($loginCustomerAmountOfRefunds) |
||
733 | { |
||
734 | $this->loginCustomerAmountOfRefunds = $loginCustomerAmountOfRefunds; |
||
735 | |||
736 | return $this; |
||
737 | } |
||
738 | |||
739 | /** |
||
740 | * @return Address |
||
741 | */ |
||
742 | public function getBillingAddress() |
||
743 | { |
||
744 | return $this->billingAddress; |
||
745 | } |
||
746 | |||
747 | /** |
||
748 | * @param Address $billingAddress |
||
749 | * |
||
750 | * @return self |
||
751 | */ |
||
752 | public function setBillingAddress($billingAddress) |
||
757 | } |
||
758 | |||
759 | /** |
||
760 | * @return string |
||
761 | */ |
||
762 | public function getBillingFullName() |
||
763 | { |
||
764 | return $this->billingFullName; |
||
765 | } |
||
766 | |||
767 | /** |
||
768 | * @param string $billingFullName |
||
769 | * |
||
770 | * @return self |
||
771 | */ |
||
772 | public function setBillingFullName($billingFullName) |
||
773 | { |
||
774 | $this->billingFullName = $billingFullName; |
||
775 | |||
776 | return $this; |
||
777 | } |
||
778 | |||
779 | /** |
||
780 | * @return string |
||
781 | */ |
||
782 | public function getBillingMobilePhone() |
||
783 | { |
||
784 | return $this->billingMobilePhone; |
||
785 | } |
||
786 | |||
787 | /** |
||
788 | * @param string $billingMobilePhone |
||
789 | * |
||
790 | * @return self |
||
791 | */ |
||
792 | public function setBillingMobilePhone($billingMobilePhone) |
||
793 | { |
||
794 | $this->billingMobilePhone = $billingMobilePhone; |
||
795 | |||
796 | return $this; |
||
797 | } |
||
798 | |||
799 | /** |
||
800 | * @return string |
||
801 | */ |
||
802 | public function getBillingDni() |
||
803 | { |
||
804 | return $this->billingDni; |
||
805 | } |
||
806 | |||
807 | /** |
||
808 | * @param string $billingDni |
||
809 | * |
||
810 | * @return self |
||
811 | */ |
||
812 | public function setBillingDni($billingDni) |
||
813 | { |
||
814 | $this->billingDni = $billingDni; |
||
815 | |||
816 | return $this; |
||
817 | } |
||
818 | |||
819 | /** |
||
820 | * @return Address |
||
821 | */ |
||
822 | public function getShippingAddress() |
||
823 | { |
||
824 | return $this->shippingAddress; |
||
825 | } |
||
826 | |||
827 | /** |
||
828 | * @param Address $shippingAddress |
||
829 | * |
||
830 | * @return self |
||
831 | */ |
||
832 | public function setShippingAddress($shippingAddress) |
||
833 | { |
||
834 | $this->shippingAddress = $shippingAddress; |
||
835 | |||
836 | return $this; |
||
837 | } |
||
838 | |||
839 | /** |
||
840 | * @return string |
||
841 | */ |
||
842 | public function getShippingFullName() |
||
843 | { |
||
844 | return $this->shippingFullName; |
||
845 | } |
||
846 | |||
847 | /** |
||
848 | * @param string $shippingFullName |
||
849 | * |
||
850 | * @return self |
||
851 | */ |
||
852 | public function setShippingFullName($shippingFullName) |
||
857 | } |
||
858 | |||
859 | /** |
||
860 | * @return string |
||
861 | */ |
||
862 | public function getShippingMobilePhone() |
||
863 | { |
||
864 | return $this->shippingMobilePhone; |
||
865 | } |
||
866 | |||
867 | /** |
||
868 | * @param string $shippingMobilePhone |
||
869 | * |
||
870 | * @return self |
||
871 | */ |
||
872 | public function setShippingMobilePhone($shippingMobilePhone) |
||
873 | { |
||
874 | $this->shippingMobilePhone = $shippingMobilePhone; |
||
875 | |||
876 | return $this; |
||
877 | } |
||
878 | |||
879 | /** |
||
880 | * @return string |
||
881 | */ |
||
882 | public function getShippingDni() |
||
885 | } |
||
886 | |||
887 | /** |
||
888 | * @param string $shippingDni |
||
889 | * |
||
890 | * @return self |
||
891 | */ |
||
892 | public function setShippingDni($shippingDni) |
||
893 | { |
||
894 | $this->shippingDni = $shippingDni; |
||
895 | |||
896 | return $this; |
||
897 | } |
||
898 | |||
899 | /** |
||
900 | * @return Article[] |
||
901 | */ |
||
902 | public function getArticles() |
||
905 | } |
||
906 | |||
907 | /** |
||
908 | * @param Article[] $articles |
||
909 | * |
||
910 | * @return self |
||
911 | */ |
||
912 | public function setArticles($articles) |
||
913 | { |
||
914 | $this->articles = $articles; |
||
915 | |||
916 | return $this; |
||
917 | } |
||
918 | |||
919 | /** |
||
920 | * @return array |
||
921 | */ |
||
922 | public function getMetadata() |
||
925 | } |
||
926 | |||
927 | /** |
||
928 | * @param array $metadata |
||
929 | * |
||
930 | * @return self |
||
931 | */ |
||
932 | public function setMetadata($metadata) |
||
933 | { |
||
934 | $this->metadata = $metadata; |
||
935 | |||
936 | return $this; |
||
937 | } |
||
938 | } |
||
939 |