Completed
Push — master ( a3a68a...0a1479 )
by Joachim
02:49
created

Label::setReturnLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Loevgaard\PakkelabelsBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Symfony\Component\Validator\Constraints as Assert;
7
8
/**
9
 * @ORM\Entity
10
 * @ORM\Table(name="pakkelabels_labels")
11
 */
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 boolean
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
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()
340
    {
341
        $this->status = static::STATUS_PENDING_NORMALIZATION;
342
        $this->smsNotification = false;
343
        $this->emailNotification = false;
344
        $this->automaticSelectServicePoint = true;
345
        $this->returnLabel = false;
346
    }
347
348
    public function arrayForApi(): array
349
    {
350
        $data = [
351
            'order_id' => $this->orderId,
352
            'reference' => $this->reference,
353
            'source' => $this->source,
354
            'own_agreement' => $this->ownAgreement,
355
            'label_format' => $this->labelFormat,
356
            'product_code' => $this->productCode,
357
            'service_codes' => $this->serviceCodes,
358
            'automatic_select_service_point' => $this->automaticSelectServicePoint,
359
            'sms_notification' => $this->smsNotification,
360
            'email_notification' => $this->emailNotification,
361
            'service_point' => [
362
                'id' => $this->servicePointId,
363
            ],
364
            'sender' => [
365
                'name' => $this->senderName,
366
                'address1' => $this->senderAddress1,
367
                'address2' => $this->senderAddress2,
368
                'country_code' => $this->senderCountryCode,
369
                'zipcode' => $this->senderZipCode,
370
                'city' => $this->senderCity,
371
                'attention' => $this->senderAttention,
372
                'email' => $this->senderEmail,
373
                'telephone' => $this->senderTelephone,
374
                'mobile' => $this->senderMobile,
375
            ],
376
            'receiver' => [
377
                'name' => $this->receiverName,
378
                'address1' => $this->receiverAddress1,
379
                'address2' => $this->receiverAddress2,
380
                'country_code' => $this->receiverCountryCode,
381
                'zipcode' => $this->receiverZipCode,
382
                'city' => $this->receiverCity,
383
                'attention' => $this->receiverAttention,
384
                'email' => $this->receiverEmail,
385
                'telephone' => $this->receiverTelephone,
386
                'mobile' => $this->receiverMobile,
387
                'instruction' => $this->receiverInstruction,
388
            ],
389
            'parcels' => [
390
                [
391
                    'weight' => 1000,
392
                ],
393
            ],
394
        ];
395
396
        return $data;
397
    }
398
399
    public function markAsError(string $error)
400
    {
401
        $this->error = $error;
402
        $this->status = static::STATUS_ERROR;
403
    }
404
405
    public function markAsSuccess()
406
    {
407
        $this->error = null;
408
        $this->status = static::STATUS_SUCCESS;
409
    }
410
411
    public function resetStatus()
412
    {
413
        $this->error = null;
414
        $this->status = static::STATUS_PENDING_NORMALIZATION;
415
    }
416
417
    public function isStatus(string $status) : bool
418
    {
419
        return $this->status === $status;
420
    }
421
422
    public function isSuccess() : bool
423
    {
424
        return $this->isStatus(static::STATUS_SUCCESS);
425
    }
426
427
    public function isError() : bool
428
    {
429
        return $this->isStatus(static::STATUS_ERROR);
430
    }
431
432
    public function getStatusTranslationKey() : string
433
    {
434
        return 'label.status.'.$this->status;
435
    }
436
437
    /**
438
     * Returns the available label formats
439
     *
440
     * @return array
441
     */
442
    public static function getLabelFormats() : array
443
    {
444
        return [
445
            self::LABEL_FORMAT_10_X_19_PDF => self::LABEL_FORMAT_10_X_19_PDF,
446
            self::LABEL_FORMAT_A4_PDF => self::LABEL_FORMAT_A4_PDF,
447
            self::LABEL_FORMAT_PNG => self::LABEL_FORMAT_PNG,
448
            self::LABEL_FORMAT_ZPL => self::LABEL_FORMAT_ZPL,
449
        ];
450
    }
451
452
    /*********************
453
     * Getters / Setters *
454
     ********************/
455
456
    /**
457
     * @return int
458
     */
459
    public function getId(): int
460
    {
461
        return $this->id;
462
    }
463
464
    /**
465
     * @param int $id
466
     *
467
     * @return Label
468
     */
469
    public function setId(int $id)
470
    {
471
        $this->id = $id;
472
473
        return $this;
474
    }
475
476
    /**
477
     * @return int
478
     */
479
    public function getExternalId(): ?int
480
    {
481
        return $this->externalId;
482
    }
483
484
    /**
485
     * @param int $externalId
486
     *
487
     * @return Label
488
     */
489
    public function setExternalId(int $externalId)
490
    {
491
        $this->externalId = $externalId;
492
493
        return $this;
494
    }
495
496
    /**
497
     * @return string
498
     */
499
    public function getStatus(): string
500
    {
501
        return $this->status;
502
    }
503
504
    /**
505
     * @param string $status
506
     *
507
     * @return Label
508
     */
509
    public function setStatus(string $status)
510
    {
511
        $this->status = $status;
512
513
        return $this;
514
    }
515
516
    /**
517
     * @return string
518
     */
519
    public function getError(): ?string
520
    {
521
        return $this->error;
522
    }
523
524
    /**
525
     * @param string $error
526
     *
527
     * @return Label
528
     */
529
    public function setError(string $error)
530
    {
531
        $this->error = $error;
532
533
        return $this;
534
    }
535
536
    /**
537
     * @return string
538
     */
539
    public function getShippingMethod(): ?string
540
    {
541
        return $this->shippingMethod;
542
    }
543
544
    /**
545
     * @param string $shippingMethod
546
     *
547
     * @return Label
548
     */
549
    public function setShippingMethod(string $shippingMethod)
550
    {
551
        $this->shippingMethod = $shippingMethod;
552
553
        return $this;
554
    }
555
556
    /**
557
     * @return bool
558
     */
559
    public function isReturnLabel(): bool
560
    {
561
        return $this->returnLabel;
562
    }
563
564
    /**
565
     * @param bool $returnLabel
566
     * @return Label
567
     */
568
    public function setReturnLabel(bool $returnLabel)
569
    {
570
        $this->returnLabel = $returnLabel;
571
        return $this;
572
    }
573
574
    /**
575
     * @return string
576
     */
577
    public function getOrderId(): ?string
578
    {
579
        return $this->orderId;
580
    }
581
582
    /**
583
     * @param string $orderId
584
     *
585
     * @return Label
586
     */
587
    public function setOrderId(string $orderId)
588
    {
589
        $this->orderId = $orderId;
590
591
        return $this;
592
    }
593
594
    /**
595
     * @return string
596
     */
597
    public function getReference(): ?string
598
    {
599
        return $this->reference;
600
    }
601
602
    /**
603
     * @param string $reference
604
     *
605
     * @return Label
606
     */
607
    public function setReference(string $reference)
608
    {
609
        $this->reference = $reference;
610
611
        return $this;
612
    }
613
614
    /**
615
     * @return string
616
     */
617
    public function getSource(): ?string
618
    {
619
        return $this->source;
620
    }
621
622
    /**
623
     * @param string $source
624
     *
625
     * @return Label
626
     */
627
    public function setSource(string $source)
628
    {
629
        $this->source = $source;
630
631
        return $this;
632
    }
633
634
    /**
635
     * @return bool
636
     */
637
    public function isOwnAgreement(): bool
638
    {
639
        return $this->ownAgreement;
640
    }
641
642
    /**
643
     * @param bool $ownAgreement
644
     *
645
     * @return Label
646
     */
647
    public function setOwnAgreement(bool $ownAgreement)
648
    {
649
        $this->ownAgreement = $ownAgreement;
650
651
        return $this;
652
    }
653
654
    /**
655
     * @return string
656
     */
657
    public function getLabelFormat(): ?string
658
    {
659
        return $this->labelFormat;
660
    }
661
662
    /**
663
     * @param string $labelFormat
664
     *
665
     * @return Label
666
     */
667
    public function setLabelFormat(string $labelFormat)
668
    {
669
        $this->labelFormat = $labelFormat;
670
671
        return $this;
672
    }
673
674
    /**
675
     * @return string
676
     */
677
    public function getProductCode(): string
678
    {
679
        return $this->productCode;
680
    }
681
682
    /**
683
     * @param string $productCode
684
     *
685
     * @return Label
686
     */
687
    public function setProductCode(string $productCode)
688
    {
689
        $this->productCode = $productCode;
690
691
        return $this;
692
    }
693
694
    /**
695
     * @return string
696
     */
697
    public function getServiceCodes(): string
698
    {
699
        return $this->serviceCodes;
700
    }
701
702
    /**
703
     * @param string $serviceCodes
704
     *
705
     * @return Label
706
     */
707
    public function setServiceCodes(string $serviceCodes)
708
    {
709
        $this->serviceCodes = $serviceCodes;
710
711
        return $this;
712
    }
713
714
    /**
715
     * @return bool
716
     */
717
    public function isAutomaticSelectServicePoint(): bool
718
    {
719
        return $this->automaticSelectServicePoint;
720
    }
721
722
    /**
723
     * @param bool $automaticSelectServicePoint
724
     *
725
     * @return Label
726
     */
727
    public function setAutomaticSelectServicePoint(bool $automaticSelectServicePoint)
728
    {
729
        $this->automaticSelectServicePoint = $automaticSelectServicePoint;
730
731
        return $this;
732
    }
733
734
    /**
735
     * @return string
736
     */
737
    public function getServicePointId(): string
738
    {
739
        return $this->servicePointId;
740
    }
741
742
    /**
743
     * @param string $servicePointId
744
     *
745
     * @return Label
746
     */
747
    public function setServicePointId(string $servicePointId)
748
    {
749
        $this->servicePointId = $servicePointId;
750
751
        return $this;
752
    }
753
754
    /**
755
     * @return bool
756
     */
757
    public function isSmsNotification(): bool
758
    {
759
        return $this->smsNotification;
760
    }
761
762
    /**
763
     * @param bool $smsNotification
764
     *
765
     * @return Label
766
     */
767
    public function setSmsNotification(bool $smsNotification)
768
    {
769
        $this->smsNotification = $smsNotification;
770
771
        return $this;
772
    }
773
774
    /**
775
     * @return bool
776
     */
777
    public function isEmailNotification(): bool
778
    {
779
        return $this->emailNotification;
780
    }
781
782
    /**
783
     * @param bool $emailNotification
784
     *
785
     * @return Label
786
     */
787
    public function setEmailNotification(bool $emailNotification)
788
    {
789
        $this->emailNotification = $emailNotification;
790
791
        return $this;
792
    }
793
794
    /**
795
     * @return string
796
     */
797
    public function getSenderName(): string
798
    {
799
        return $this->senderName;
800
    }
801
802
    /**
803
     * @param string $senderName
804
     *
805
     * @return Label
806
     */
807
    public function setSenderName(string $senderName)
808
    {
809
        $this->senderName = $senderName;
810
811
        return $this;
812
    }
813
814
    /**
815
     * @return string
816
     */
817
    public function getSenderAddress1(): string
818
    {
819
        return $this->senderAddress1;
820
    }
821
822
    /**
823
     * @param string $senderAddress1
824
     *
825
     * @return Label
826
     */
827
    public function setSenderAddress1(string $senderAddress1)
828
    {
829
        $this->senderAddress1 = $senderAddress1;
830
831
        return $this;
832
    }
833
834
    /**
835
     * @return string
836
     */
837
    public function getSenderAddress2(): ?string
838
    {
839
        return $this->senderAddress2;
840
    }
841
842
    /**
843
     * @param string $senderAddress2
844
     *
845
     * @return Label
846
     */
847
    public function setSenderAddress2(string $senderAddress2)
848
    {
849
        $this->senderAddress2 = $senderAddress2;
850
851
        return $this;
852
    }
853
854
    /**
855
     * @return string
856
     */
857
    public function getSenderCountryCode(): string
858
    {
859
        return $this->senderCountryCode;
860
    }
861
862
    /**
863
     * @param string $senderCountryCode
864
     *
865
     * @return Label
866
     */
867
    public function setSenderCountryCode(string $senderCountryCode)
868
    {
869
        $this->senderCountryCode = $senderCountryCode;
870
871
        return $this;
872
    }
873
874
    /**
875
     * @return string
876
     */
877
    public function getSenderZipCode(): string
878
    {
879
        return $this->senderZipCode;
880
    }
881
882
    /**
883
     * @param string $senderZipCode
884
     *
885
     * @return Label
886
     */
887
    public function setSenderZipCode(string $senderZipCode)
888
    {
889
        $this->senderZipCode = $senderZipCode;
890
891
        return $this;
892
    }
893
894
    /**
895
     * @return string
896
     */
897
    public function getSenderCity(): string
898
    {
899
        return $this->senderCity;
900
    }
901
902
    /**
903
     * @param string $senderCity
904
     *
905
     * @return Label
906
     */
907
    public function setSenderCity(string $senderCity)
908
    {
909
        $this->senderCity = $senderCity;
910
911
        return $this;
912
    }
913
914
    /**
915
     * @return string
916
     */
917
    public function getSenderAttention(): ?string
918
    {
919
        return $this->senderAttention;
920
    }
921
922
    /**
923
     * @param string $senderAttention
924
     *
925
     * @return Label
926
     */
927
    public function setSenderAttention(string $senderAttention)
928
    {
929
        $this->senderAttention = $senderAttention;
930
931
        return $this;
932
    }
933
934
    /**
935
     * @return string
936
     */
937
    public function getSenderEmail(): string
938
    {
939
        return $this->senderEmail;
940
    }
941
942
    /**
943
     * @param string $senderEmail
944
     *
945
     * @return Label
946
     */
947
    public function setSenderEmail(string $senderEmail)
948
    {
949
        $this->senderEmail = $senderEmail;
950
951
        return $this;
952
    }
953
954
    /**
955
     * @return string
956
     */
957
    public function getSenderTelephone(): ?string
958
    {
959
        return $this->senderTelephone;
960
    }
961
962
    /**
963
     * @param string $senderTelephone
964
     *
965
     * @return Label
966
     */
967
    public function setSenderTelephone(string $senderTelephone)
968
    {
969
        $this->senderTelephone = $senderTelephone;
970
971
        return $this;
972
    }
973
974
    /**
975
     * @return string
976
     */
977
    public function getSenderMobile(): ?string
978
    {
979
        return $this->senderMobile;
980
    }
981
982
    /**
983
     * @param string $senderMobile
984
     *
985
     * @return Label
986
     */
987
    public function setSenderMobile(string $senderMobile)
988
    {
989
        $this->senderMobile = $senderMobile;
990
991
        return $this;
992
    }
993
994
    /**
995
     * @return string
996
     */
997
    public function getReceiverName(): string
998
    {
999
        return $this->receiverName;
1000
    }
1001
1002
    /**
1003
     * @param string $receiverName
1004
     *
1005
     * @return Label
1006
     */
1007
    public function setReceiverName(string $receiverName)
1008
    {
1009
        $this->receiverName = $receiverName;
1010
1011
        return $this;
1012
    }
1013
1014
    /**
1015
     * @return string
1016
     */
1017
    public function getReceiverAddress1(): string
1018
    {
1019
        return $this->receiverAddress1;
1020
    }
1021
1022
    /**
1023
     * @param string $receiverAddress1
1024
     *
1025
     * @return Label
1026
     */
1027
    public function setReceiverAddress1(string $receiverAddress1)
1028
    {
1029
        $this->receiverAddress1 = $receiverAddress1;
1030
1031
        return $this;
1032
    }
1033
1034
    /**
1035
     * @return string
1036
     */
1037
    public function getReceiverAddress2(): ?string
1038
    {
1039
        return $this->receiverAddress2;
1040
    }
1041
1042
    /**
1043
     * @param string $receiverAddress2
1044
     *
1045
     * @return Label
1046
     */
1047
    public function setReceiverAddress2(string $receiverAddress2)
1048
    {
1049
        $this->receiverAddress2 = $receiverAddress2;
1050
1051
        return $this;
1052
    }
1053
1054
    /**
1055
     * @return string
1056
     */
1057
    public function getReceiverCountryCode(): string
1058
    {
1059
        return $this->receiverCountryCode;
1060
    }
1061
1062
    /**
1063
     * @param string $receiverCountryCode
1064
     *
1065
     * @return Label
1066
     */
1067
    public function setReceiverCountryCode(string $receiverCountryCode)
1068
    {
1069
        $this->receiverCountryCode = $receiverCountryCode;
1070
1071
        return $this;
1072
    }
1073
1074
    /**
1075
     * @return string
1076
     */
1077
    public function getReceiverZipCode(): string
1078
    {
1079
        return $this->receiverZipCode;
1080
    }
1081
1082
    /**
1083
     * @param string $receiverZipCode
1084
     *
1085
     * @return Label
1086
     */
1087
    public function setReceiverZipCode(string $receiverZipCode)
1088
    {
1089
        $this->receiverZipCode = $receiverZipCode;
1090
1091
        return $this;
1092
    }
1093
1094
    /**
1095
     * @return string
1096
     */
1097
    public function getReceiverCity(): string
1098
    {
1099
        return $this->receiverCity;
1100
    }
1101
1102
    /**
1103
     * @param string $receiverCity
1104
     *
1105
     * @return Label
1106
     */
1107
    public function setReceiverCity(string $receiverCity)
1108
    {
1109
        $this->receiverCity = $receiverCity;
1110
1111
        return $this;
1112
    }
1113
1114
    /**
1115
     * @return string
1116
     */
1117
    public function getReceiverAttention(): ?string
1118
    {
1119
        return $this->receiverAttention;
1120
    }
1121
1122
    /**
1123
     * @param string $receiverAttention
1124
     *
1125
     * @return Label
1126
     */
1127
    public function setReceiverAttention(string $receiverAttention)
1128
    {
1129
        $this->receiverAttention = $receiverAttention;
1130
1131
        return $this;
1132
    }
1133
1134
    /**
1135
     * @return string
1136
     */
1137
    public function getReceiverEmail(): string
1138
    {
1139
        return $this->receiverEmail;
1140
    }
1141
1142
    /**
1143
     * @param string $receiverEmail
1144
     *
1145
     * @return Label
1146
     */
1147
    public function setReceiverEmail(string $receiverEmail)
1148
    {
1149
        $this->receiverEmail = $receiverEmail;
1150
1151
        return $this;
1152
    }
1153
1154
    /**
1155
     * @return string
1156
     */
1157
    public function getReceiverTelephone(): ?string
1158
    {
1159
        return $this->receiverTelephone;
1160
    }
1161
1162
    /**
1163
     * @param string $receiverTelephone
1164
     *
1165
     * @return Label
1166
     */
1167
    public function setReceiverTelephone(string $receiverTelephone)
1168
    {
1169
        $this->receiverTelephone = $receiverTelephone;
1170
1171
        return $this;
1172
    }
1173
1174
    /**
1175
     * @return string
1176
     */
1177
    public function getReceiverMobile(): ?string
1178
    {
1179
        return $this->receiverMobile;
1180
    }
1181
1182
    /**
1183
     * @param string $receiverMobile
1184
     *
1185
     * @return Label
1186
     */
1187
    public function setReceiverMobile(string $receiverMobile)
1188
    {
1189
        $this->receiverMobile = $receiverMobile;
1190
1191
        return $this;
1192
    }
1193
1194
    /**
1195
     * @return string
1196
     */
1197
    public function getReceiverInstruction(): ?string
1198
    {
1199
        return $this->receiverInstruction;
1200
    }
1201
1202
    /**
1203
     * @param string $receiverInstruction
1204
     *
1205
     * @return Label
1206
     */
1207
    public function setReceiverInstruction(string $receiverInstruction)
1208
    {
1209
        $this->receiverInstruction = $receiverInstruction;
1210
1211
        return $this;
1212
    }
1213
}
1214