Complex classes like Label 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. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
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 Label, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
12 | class Label |
||
13 | { |
||
14 | const STATUS_PENDING_NORMALIZATION = 'pending_normalization'; |
||
15 | const STATUS_PENDING_CREATION = 'pending_creation'; |
||
16 | const STATUS_ERROR = 'error'; |
||
17 | const STATUS_SUCCESS = 'success'; |
||
18 | |||
19 | const LABEL_FORMAT_A4_PDF = 'a4_pdf'; |
||
20 | const LABEL_FORMAT_10_X_19_PDF = '10x19_pdf'; |
||
21 | const LABEL_FORMAT_PNG = 'png'; |
||
22 | const LABEL_FORMAT_ZPL = 'zpl'; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | * |
||
27 | * @ORM\Id |
||
28 | * @ORM\GeneratedValue |
||
29 | * @ORM\Column(type="integer") |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * This is the shipment id from Pakkelabels. |
||
35 | * |
||
36 | * @var int |
||
37 | * |
||
38 | * @ORM\Column(type="integer", unique=true, nullable=true) |
||
39 | */ |
||
40 | protected $externalId; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | * |
||
45 | * @Assert\NotBlank() |
||
46 | * |
||
47 | * @ORM\Column(type="string") |
||
48 | */ |
||
49 | protected $status; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | * |
||
54 | * @ORM\Column(type="text", nullable=true) |
||
55 | */ |
||
56 | protected $error; |
||
57 | |||
58 | /** |
||
59 | * The shipping method property is used in normalization. We check the mappings table to see |
||
60 | * if there is a shipping method matching this. If there is, we will populate the product code |
||
61 | * and services codes properties. |
||
62 | * |
||
63 | * @var string |
||
64 | * |
||
65 | * @ORM\Column(type="string", nullable=true) |
||
66 | */ |
||
67 | protected $shippingMethod; |
||
68 | |||
69 | /** |
||
70 | * This property indiciates whether this label is a return label or not. |
||
71 | * |
||
72 | * @var bool |
||
73 | * |
||
74 | * @Assert\NotNull() |
||
75 | * |
||
76 | * @ORM\Column(type="boolean") |
||
77 | */ |
||
78 | protected $returnLabel; |
||
79 | |||
80 | /************************** |
||
81 | * Pakkelabels properties * |
||
82 | *************************/ |
||
83 | /** |
||
84 | * @var string |
||
85 | * |
||
86 | * @ORM\Column(type="string", nullable=true) |
||
87 | */ |
||
88 | protected $orderId; |
||
89 | |||
90 | /** |
||
91 | * @var string |
||
92 | * |
||
93 | * @ORM\Column(type="string", nullable=true) |
||
94 | */ |
||
95 | protected $reference; |
||
96 | |||
97 | /** |
||
98 | * @var string |
||
99 | * |
||
100 | * @ORM\Column(type="string", nullable=true) |
||
101 | */ |
||
102 | protected $source; |
||
103 | |||
104 | /** |
||
105 | * @var bool |
||
106 | * |
||
107 | * @Assert\NotBlank() |
||
108 | * |
||
109 | * @ORM\Column(type="boolean") |
||
110 | */ |
||
111 | protected $ownAgreement; |
||
112 | |||
113 | /** |
||
114 | * @var string |
||
115 | * |
||
116 | * @ORM\Column(type="string", nullable=true) |
||
117 | */ |
||
118 | protected $labelFormat; |
||
119 | |||
120 | /** |
||
121 | * @var string |
||
122 | * |
||
123 | * @ORM\Column(type="string", nullable=true) |
||
124 | */ |
||
125 | protected $productCode; |
||
126 | |||
127 | /** |
||
128 | * @var string |
||
129 | * |
||
130 | * @ORM\Column(type="string", nullable=true) |
||
131 | */ |
||
132 | protected $serviceCodes; |
||
133 | |||
134 | /** |
||
135 | * @var bool |
||
136 | * |
||
137 | * @Assert\NotBlank() |
||
138 | * |
||
139 | * @ORM\Column(type="boolean") |
||
140 | */ |
||
141 | protected $automaticSelectServicePoint; |
||
142 | |||
143 | /** |
||
144 | * @var string|null |
||
145 | * |
||
146 | * @ORM\Column(type="string", nullable=true) |
||
147 | */ |
||
148 | protected $servicePointId; |
||
149 | |||
150 | /** |
||
151 | * @var bool |
||
152 | * |
||
153 | * @Assert\NotBlank() |
||
154 | * |
||
155 | * @ORM\Column(type="boolean") |
||
156 | */ |
||
157 | protected $smsNotification; |
||
158 | |||
159 | /** |
||
160 | * @var bool |
||
161 | * |
||
162 | * @Assert\NotBlank() |
||
163 | * |
||
164 | * @ORM\Column(type="boolean") |
||
165 | */ |
||
166 | protected $emailNotification; |
||
167 | |||
168 | /** |
||
169 | * @var string |
||
170 | * |
||
171 | * @Assert\NotBlank() |
||
172 | * |
||
173 | * @ORM\Column(type="string") |
||
174 | */ |
||
175 | protected $senderName; |
||
176 | |||
177 | /** |
||
178 | * @var string |
||
179 | * |
||
180 | * @Assert\NotBlank() |
||
181 | * |
||
182 | * @ORM\Column(type="string") |
||
183 | */ |
||
184 | protected $senderAddress1; |
||
185 | |||
186 | /** |
||
187 | * @var string |
||
188 | * |
||
189 | * @ORM\Column(type="string", nullable=true) |
||
190 | */ |
||
191 | protected $senderAddress2; |
||
192 | |||
193 | /** |
||
194 | * @var string |
||
195 | * |
||
196 | * @Assert\NotBlank() |
||
197 | * |
||
198 | * @ORM\Column(type="string") |
||
199 | */ |
||
200 | protected $senderCountryCode; |
||
201 | |||
202 | /** |
||
203 | * @var string |
||
204 | * |
||
205 | * @Assert\NotBlank() |
||
206 | * |
||
207 | * @ORM\Column(type="string") |
||
208 | */ |
||
209 | protected $senderZipCode; |
||
210 | |||
211 | /** |
||
212 | * @var string |
||
213 | * |
||
214 | * @Assert\NotBlank() |
||
215 | * |
||
216 | * @ORM\Column(type="string") |
||
217 | */ |
||
218 | protected $senderCity; |
||
219 | |||
220 | /** |
||
221 | * @var string |
||
222 | * |
||
223 | * @ORM\Column(type="string", nullable=true) |
||
224 | */ |
||
225 | protected $senderAttention; |
||
226 | |||
227 | /** |
||
228 | * @var string |
||
229 | * |
||
230 | * @Assert\NotBlank() |
||
231 | * |
||
232 | * @ORM\Column(type="string") |
||
233 | */ |
||
234 | protected $senderEmail; |
||
235 | |||
236 | /** |
||
237 | * @var string |
||
238 | * |
||
239 | * @ORM\Column(type="string", nullable=true) |
||
240 | */ |
||
241 | protected $senderTelephone; |
||
242 | |||
243 | /** |
||
244 | * @var string |
||
245 | * |
||
246 | * @ORM\Column(type="string", nullable=true) |
||
247 | */ |
||
248 | protected $senderMobile; |
||
249 | |||
250 | /** |
||
251 | * @var string |
||
252 | * |
||
253 | * @Assert\NotBlank() |
||
254 | * |
||
255 | * @ORM\Column(type="string") |
||
256 | */ |
||
257 | protected $receiverName; |
||
258 | |||
259 | /** |
||
260 | * @var string |
||
261 | * |
||
262 | * @Assert\NotBlank() |
||
263 | * |
||
264 | * @ORM\Column(type="string") |
||
265 | */ |
||
266 | protected $receiverAddress1; |
||
267 | |||
268 | /** |
||
269 | * @var string |
||
270 | * |
||
271 | * @ORM\Column(type="string", nullable=true) |
||
272 | */ |
||
273 | protected $receiverAddress2; |
||
274 | |||
275 | /** |
||
276 | * @var string |
||
277 | * |
||
278 | * @Assert\NotBlank() |
||
279 | * |
||
280 | * @ORM\Column(type="string") |
||
281 | */ |
||
282 | protected $receiverCountryCode; |
||
283 | |||
284 | /** |
||
285 | * @var string |
||
286 | * |
||
287 | * @Assert\NotBlank() |
||
288 | * |
||
289 | * @ORM\Column(type="string") |
||
290 | */ |
||
291 | protected $receiverZipCode; |
||
292 | |||
293 | /** |
||
294 | * @var string |
||
295 | * |
||
296 | * @Assert\NotBlank() |
||
297 | * |
||
298 | * @ORM\Column(type="string") |
||
299 | */ |
||
300 | protected $receiverCity; |
||
301 | |||
302 | /** |
||
303 | * @var string |
||
304 | * |
||
305 | * @ORM\Column(type="string", nullable=true) |
||
306 | */ |
||
307 | protected $receiverAttention; |
||
308 | |||
309 | /** |
||
310 | * @var string |
||
311 | * |
||
312 | * @Assert\NotBlank() |
||
313 | * |
||
314 | * @ORM\Column(type="string") |
||
315 | */ |
||
316 | protected $receiverEmail; |
||
317 | |||
318 | /** |
||
319 | * @var string |
||
320 | * |
||
321 | * @ORM\Column(type="string", nullable=true) |
||
322 | */ |
||
323 | protected $receiverTelephone; |
||
324 | |||
325 | /** |
||
326 | * @var string |
||
327 | * |
||
328 | * @ORM\Column(type="string", nullable=true) |
||
329 | */ |
||
330 | protected $receiverMobile; |
||
331 | |||
332 | /** |
||
333 | * @var string |
||
334 | * |
||
335 | * @ORM\Column(type="text", nullable=true) |
||
336 | */ |
||
337 | protected $receiverInstruction; |
||
338 | |||
339 | public function __construct() |
||
347 | |||
348 | public function arrayForApi(): array |
||
398 | |||
399 | public function markAsError(string $error) |
||
404 | |||
405 | public function markAsSuccess() |
||
410 | |||
411 | public function resetStatus() |
||
416 | |||
417 | public function isStatus(string $status): bool |
||
421 | |||
422 | public function isSuccess(): bool |
||
426 | |||
427 | public function isError(): bool |
||
431 | |||
432 | public function getStatusTranslationKey(): string |
||
436 | |||
437 | /** |
||
438 | * Returns the available label formats. |
||
439 | * |
||
440 | * @return array |
||
441 | */ |
||
442 | public static function getLabelFormats(): array |
||
451 | |||
452 | /** |
||
453 | * Returns the available statuses |
||
454 | * |
||
455 | * @return array |
||
456 | */ |
||
457 | public static function getStatuses(): array |
||
466 | |||
467 | /********************* |
||
468 | * Getters / Setters * |
||
469 | ********************/ |
||
470 | |||
471 | /** |
||
472 | * @return int |
||
473 | */ |
||
474 | public function getId(): int |
||
478 | |||
479 | /** |
||
480 | * @param int $id |
||
481 | * |
||
482 | * @return Label |
||
483 | */ |
||
484 | public function setId(int $id) : Label |
||
490 | |||
491 | /** |
||
492 | * @return int |
||
493 | */ |
||
494 | public function getExternalId(): ?int |
||
498 | |||
499 | /** |
||
500 | * @param int $externalId |
||
501 | * |
||
502 | * @return Label |
||
503 | */ |
||
504 | public function setExternalId(int $externalId) : Label |
||
510 | |||
511 | /** |
||
512 | * @return string |
||
513 | */ |
||
514 | public function getStatus(): string |
||
518 | |||
519 | /** |
||
520 | * @param string $status |
||
521 | * |
||
522 | * @return Label |
||
523 | */ |
||
524 | public function setStatus(string $status) : Label |
||
530 | |||
531 | /** |
||
532 | * @return string |
||
533 | */ |
||
534 | public function getError(): ?string |
||
538 | |||
539 | /** |
||
540 | * @param string $error |
||
541 | * |
||
542 | * @return Label |
||
543 | */ |
||
544 | public function setError(string $error) : Label |
||
550 | |||
551 | /** |
||
552 | * @return string |
||
553 | */ |
||
554 | public function getShippingMethod(): ?string |
||
558 | |||
559 | /** |
||
560 | * @param string $shippingMethod |
||
561 | * |
||
562 | * @return Label |
||
563 | */ |
||
564 | public function setShippingMethod(string $shippingMethod) : Label |
||
570 | |||
571 | /** |
||
572 | * @return bool |
||
573 | */ |
||
574 | public function isReturnLabel(): bool |
||
578 | |||
579 | /** |
||
580 | * @param bool $returnLabel |
||
581 | * |
||
582 | * @return Label |
||
583 | */ |
||
584 | public function setReturnLabel(bool $returnLabel) : Label |
||
590 | |||
591 | /** |
||
592 | * @return string |
||
593 | */ |
||
594 | public function getOrderId(): ?string |
||
598 | |||
599 | /** |
||
600 | * @param string $orderId |
||
601 | * |
||
602 | * @return Label |
||
603 | */ |
||
604 | public function setOrderId(string $orderId) : Label |
||
610 | |||
611 | /** |
||
612 | * @return string |
||
613 | */ |
||
614 | public function getReference(): ?string |
||
618 | |||
619 | /** |
||
620 | * @param string $reference |
||
621 | * |
||
622 | * @return Label |
||
623 | */ |
||
624 | public function setReference(string $reference) : Label |
||
630 | |||
631 | /** |
||
632 | * @return string |
||
633 | */ |
||
634 | public function getSource(): ?string |
||
638 | |||
639 | /** |
||
640 | * @param string $source |
||
641 | * |
||
642 | * @return Label |
||
643 | */ |
||
644 | public function setSource(string $source) : Label |
||
650 | |||
651 | /** |
||
652 | * @return bool |
||
653 | */ |
||
654 | public function isOwnAgreement(): bool |
||
658 | |||
659 | /** |
||
660 | * @param bool $ownAgreement |
||
661 | * |
||
662 | * @return Label |
||
663 | */ |
||
664 | public function setOwnAgreement(bool $ownAgreement) : Label |
||
670 | |||
671 | /** |
||
672 | * @return string |
||
673 | */ |
||
674 | public function getLabelFormat(): ?string |
||
678 | |||
679 | /** |
||
680 | * @param string $labelFormat |
||
681 | * |
||
682 | * @return Label |
||
683 | */ |
||
684 | public function setLabelFormat(string $labelFormat) : Label |
||
690 | |||
691 | /** |
||
692 | * @return string |
||
693 | */ |
||
694 | public function getProductCode(): string |
||
698 | |||
699 | /** |
||
700 | * @param string $productCode |
||
701 | * |
||
702 | * @return Label |
||
703 | */ |
||
704 | public function setProductCode(string $productCode) : Label |
||
710 | |||
711 | /** |
||
712 | * @return string |
||
713 | */ |
||
714 | public function getServiceCodes(): string |
||
718 | |||
719 | /** |
||
720 | * @param string $serviceCodes |
||
721 | * |
||
722 | * @return Label |
||
723 | */ |
||
724 | public function setServiceCodes(string $serviceCodes) : Label |
||
730 | |||
731 | /** |
||
732 | * @return bool |
||
733 | */ |
||
734 | public function isAutomaticSelectServicePoint(): bool |
||
738 | |||
739 | /** |
||
740 | * @param bool $automaticSelectServicePoint |
||
741 | * |
||
742 | * @return Label |
||
743 | */ |
||
744 | public function setAutomaticSelectServicePoint(bool $automaticSelectServicePoint) : Label |
||
750 | |||
751 | /** |
||
752 | * @return string |
||
753 | */ |
||
754 | public function getServicePointId(): ?string |
||
758 | |||
759 | /** |
||
760 | * @param string $servicePointId |
||
761 | * |
||
762 | * @return Label |
||
763 | */ |
||
764 | public function setServicePointId(string $servicePointId) : Label |
||
770 | |||
771 | /** |
||
772 | * @return bool |
||
773 | */ |
||
774 | public function isSmsNotification(): bool |
||
778 | |||
779 | /** |
||
780 | * @param bool $smsNotification |
||
781 | * |
||
782 | * @return Label |
||
783 | */ |
||
784 | public function setSmsNotification(bool $smsNotification) : Label |
||
790 | |||
791 | /** |
||
792 | * @return bool |
||
793 | */ |
||
794 | public function isEmailNotification(): bool |
||
798 | |||
799 | /** |
||
800 | * @param bool $emailNotification |
||
801 | * |
||
802 | * @return Label |
||
803 | */ |
||
804 | public function setEmailNotification(bool $emailNotification) : Label |
||
810 | |||
811 | /** |
||
812 | * @return string |
||
813 | */ |
||
814 | public function getSenderName(): string |
||
818 | |||
819 | /** |
||
820 | * @param string $senderName |
||
821 | * |
||
822 | * @return Label |
||
823 | */ |
||
824 | public function setSenderName(string $senderName) : Label |
||
830 | |||
831 | /** |
||
832 | * @return string |
||
833 | */ |
||
834 | public function getSenderAddress1(): string |
||
838 | |||
839 | /** |
||
840 | * @param string $senderAddress1 |
||
841 | * |
||
842 | * @return Label |
||
843 | */ |
||
844 | public function setSenderAddress1(string $senderAddress1) : Label |
||
850 | |||
851 | /** |
||
852 | * @return string |
||
853 | */ |
||
854 | public function getSenderAddress2(): ?string |
||
858 | |||
859 | /** |
||
860 | * @param string $senderAddress2 |
||
861 | * |
||
862 | * @return Label |
||
863 | */ |
||
864 | public function setSenderAddress2(string $senderAddress2) : Label |
||
870 | |||
871 | /** |
||
872 | * @return string |
||
873 | */ |
||
874 | public function getSenderCountryCode(): string |
||
878 | |||
879 | /** |
||
880 | * @param string $senderCountryCode |
||
881 | * |
||
882 | * @return Label |
||
883 | */ |
||
884 | public function setSenderCountryCode(string $senderCountryCode) : Label |
||
890 | |||
891 | /** |
||
892 | * @return string |
||
893 | */ |
||
894 | public function getSenderZipCode(): string |
||
898 | |||
899 | /** |
||
900 | * @param string $senderZipCode |
||
901 | * |
||
902 | * @return Label |
||
903 | */ |
||
904 | public function setSenderZipCode(string $senderZipCode) : Label |
||
910 | |||
911 | /** |
||
912 | * @return string |
||
913 | */ |
||
914 | public function getSenderCity(): string |
||
918 | |||
919 | /** |
||
920 | * @param string $senderCity |
||
921 | * |
||
922 | * @return Label |
||
923 | */ |
||
924 | public function setSenderCity(string $senderCity) : Label |
||
930 | |||
931 | /** |
||
932 | * @return string |
||
933 | */ |
||
934 | public function getSenderAttention(): ?string |
||
938 | |||
939 | /** |
||
940 | * @param string $senderAttention |
||
941 | * |
||
942 | * @return Label |
||
943 | */ |
||
944 | public function setSenderAttention(string $senderAttention) : Label |
||
950 | |||
951 | /** |
||
952 | * @return string |
||
953 | */ |
||
954 | public function getSenderEmail(): string |
||
958 | |||
959 | /** |
||
960 | * @param string $senderEmail |
||
961 | * |
||
962 | * @return Label |
||
963 | */ |
||
964 | public function setSenderEmail(string $senderEmail) : Label |
||
970 | |||
971 | /** |
||
972 | * @return string |
||
973 | */ |
||
974 | public function getSenderTelephone(): ?string |
||
978 | |||
979 | /** |
||
980 | * @param string $senderTelephone |
||
981 | * |
||
982 | * @return Label |
||
983 | */ |
||
984 | public function setSenderTelephone(string $senderTelephone) : Label |
||
990 | |||
991 | /** |
||
992 | * @return string |
||
993 | */ |
||
994 | public function getSenderMobile(): ?string |
||
998 | |||
999 | /** |
||
1000 | * @param string $senderMobile |
||
1001 | * |
||
1002 | * @return Label |
||
1003 | */ |
||
1004 | public function setSenderMobile(string $senderMobile) : Label |
||
1010 | |||
1011 | /** |
||
1012 | * @return string |
||
1013 | */ |
||
1014 | public function getReceiverName(): string |
||
1018 | |||
1019 | /** |
||
1020 | * @param string $receiverName |
||
1021 | * |
||
1022 | * @return Label |
||
1023 | */ |
||
1024 | public function setReceiverName(string $receiverName) : Label |
||
1030 | |||
1031 | /** |
||
1032 | * @return string |
||
1033 | */ |
||
1034 | public function getReceiverAddress1(): string |
||
1038 | |||
1039 | /** |
||
1040 | * @param string $receiverAddress1 |
||
1041 | * |
||
1042 | * @return Label |
||
1043 | */ |
||
1044 | public function setReceiverAddress1(string $receiverAddress1) : Label |
||
1050 | |||
1051 | /** |
||
1052 | * @return string |
||
1053 | */ |
||
1054 | public function getReceiverAddress2(): ?string |
||
1058 | |||
1059 | /** |
||
1060 | * @param string $receiverAddress2 |
||
1061 | * |
||
1062 | * @return Label |
||
1063 | */ |
||
1064 | public function setReceiverAddress2(string $receiverAddress2) : Label |
||
1070 | |||
1071 | /** |
||
1072 | * @return string |
||
1073 | */ |
||
1074 | public function getReceiverCountryCode(): string |
||
1078 | |||
1079 | /** |
||
1080 | * @param string $receiverCountryCode |
||
1081 | * |
||
1082 | * @return Label |
||
1083 | */ |
||
1084 | public function setReceiverCountryCode(string $receiverCountryCode) : Label |
||
1090 | |||
1091 | /** |
||
1092 | * @return string |
||
1093 | */ |
||
1094 | public function getReceiverZipCode(): string |
||
1098 | |||
1099 | /** |
||
1100 | * @param string $receiverZipCode |
||
1101 | * |
||
1102 | * @return Label |
||
1103 | */ |
||
1104 | public function setReceiverZipCode(string $receiverZipCode) : Label |
||
1110 | |||
1111 | /** |
||
1112 | * @return string |
||
1113 | */ |
||
1114 | public function getReceiverCity(): string |
||
1118 | |||
1119 | /** |
||
1120 | * @param string $receiverCity |
||
1121 | * |
||
1122 | * @return Label |
||
1123 | */ |
||
1124 | public function setReceiverCity(string $receiverCity) : Label |
||
1130 | |||
1131 | /** |
||
1132 | * @return string |
||
1133 | */ |
||
1134 | public function getReceiverAttention(): ?string |
||
1138 | |||
1139 | /** |
||
1140 | * @param string $receiverAttention |
||
1141 | * |
||
1142 | * @return Label |
||
1143 | */ |
||
1144 | public function setReceiverAttention(string $receiverAttention) : Label |
||
1150 | |||
1151 | /** |
||
1152 | * @return string |
||
1153 | */ |
||
1154 | public function getReceiverEmail(): string |
||
1158 | |||
1159 | /** |
||
1160 | * @param string $receiverEmail |
||
1161 | * |
||
1162 | * @return Label |
||
1163 | */ |
||
1164 | public function setReceiverEmail(string $receiverEmail) : Label |
||
1170 | |||
1171 | /** |
||
1172 | * @return string |
||
1173 | */ |
||
1174 | public function getReceiverTelephone(): ?string |
||
1178 | |||
1179 | /** |
||
1180 | * @param string $receiverTelephone |
||
1181 | * |
||
1182 | * @return Label |
||
1183 | */ |
||
1184 | public function setReceiverTelephone(string $receiverTelephone) : Label |
||
1190 | |||
1191 | /** |
||
1192 | * @return string |
||
1193 | */ |
||
1194 | public function getReceiverMobile(): ?string |
||
1198 | |||
1199 | /** |
||
1200 | * @param string $receiverMobile |
||
1201 | * |
||
1202 | * @return Label |
||
1203 | */ |
||
1204 | public function setReceiverMobile(string $receiverMobile) : Label |
||
1210 | |||
1211 | /** |
||
1212 | * @return string |
||
1213 | */ |
||
1214 | public function getReceiverInstruction(): ?string |
||
1218 | |||
1219 | /** |
||
1220 | * @param string $receiverInstruction |
||
1221 | * |
||
1222 | * @return Label |
||
1223 | */ |
||
1224 | public function setReceiverInstruction(string $receiverInstruction) : Label |
||
1230 | } |
||
1231 |