Failed Conditions
Pull Request — experimental/sf (#29)
by Kentaro
50:12 queued 39:05
created

Shipping::getAddr02()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
use Eccube\Service\Calculator\OrderItemCollection;
18
use Eccube\Service\PurchaseFlow\ItemCollection;
19
20
/**
21
 * Shipping
22
 *
23
 * @ORM\Table(name="dtb_shipping")
24
 * @ORM\InheritanceType("SINGLE_TABLE")
25
 * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
26
 * @ORM\HasLifecycleCallbacks()
27
 * @ORM\Entity(repositoryClass="Eccube\Repository\ShippingRepository")
28
 */
29
class Shipping extends \Eccube\Entity\AbstractEntity
30
{
31
    use NameTrait;
32
33 26
    public function getShippingMultipleDefaultName()
34
    {
35 26
        return $this->getName01().' '.$this->getPref()->getName().' '.$this->getAddr01().' '.$this->getAddr02();
36
    }
37
38
    /**
39
     * @var int
40
     *
41
     * @ORM\Column(name="id", type="integer", options={"unsigned":true})
42
     * @ORM\Id
43
     * @ORM\GeneratedValue(strategy="IDENTITY")
44
     */
45
    private $id;
46
47
    /**
48
     * @var string
49
     *
50
     * @ORM\Column(name="name01", type="string", length=255)
51
     */
52
    private $name01;
53
54
    /**
55
     * @var string
56
     *
57
     * @ORM\Column(name="name02", type="string", length=255)
58
     */
59
    private $name02;
60
61
    /**
62
     * @var string
63
     *
64
     * @ORM\Column(name="kana01", type="string", length=255)
65
     */
66
    private $kana01;
67
68
    /**
69
     * @var string
70
     *
71
     * @ORM\Column(name="kana02", type="string", length=255)
72
     */
73
    private $kana02;
74
75
    /**
76
     * @var string|null
77
     *
78
     * @ORM\Column(name="company_name", type="string", length=255, nullable=true)
79
     */
80
    private $company_name;
81
82
    /**
83
     * @var string|null
84
     *
85
     * @ORM\Column(name="phone_number", type="string", length=14, nullable=true)
86
     */
87
    private $phone_number;
88
89
    /**
90
     * @var string|null
91
     *
92
     * @ORM\Column(name="postal_code", type="string", length=8, nullable=true)
93
     */
94
    private $postal_code;
95
96
    /**
97
     * @var string|null
98
     *
99
     * @ORM\Column(name="addr01", type="string", length=255, nullable=true)
100
     */
101
    private $addr01;
102
103
    /**
104
     * @var string|null
105
     *
106
     * @ORM\Column(name="addr02", type="string", length=255, nullable=true)
107
     */
108
    private $addr02;
109
110
    /**
111
     * @var string|null
112
     *
113
     * @ORM\Column(name="delivery_name", type="string", length=255, nullable=true)
114
     */
115
    private $shipping_delivery_name;
116
117
    /**
118
     * @var int
119
     *
120
     * @ORM\Column(name="time_id", type="integer", options={"unsigned":true}, nullable=true)
121
     */
122
    private $time_id;
123
124
    /**
125
     * @var int
126
     *
127
     * @ORM\Column(name="fee_id", type="integer", options={"unsigned":true}, nullable=true)
128
     */
129
    private $fee_id;
130
131
    /**
132
     * @var string|null
133
     *
134
     * @ORM\Column(name="delivery_time", type="string", length=255, nullable=true)
135
     */
136
    private $shipping_delivery_time;
137
138
    /**
139
     * お届け予定日/お届け希望日
140
     *
141
     * @var \DateTime|null
142
     *
143
     * @ORM\Column(name="delivery_date", type="datetimetz", nullable=true)
144
     */
145
    private $shipping_delivery_date;
146
147
    /**
148
     * @var string|null
149
     *
150
     * @ORM\Column(name="delivery_fee", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0})
151
     */
152
    private $shipping_delivery_fee = 0;
153
154
    /**
155
     * 出荷日
156
     *
157
     * @var \DateTime|null
158
     *
159
     * @ORM\Column(name="shipping_date", type="datetimetz", nullable=true)
160
     */
161
    private $shipping_date;
162
163
    /**
164
     * @var string
165
     *
166
     * @ORM\Column(name="tracking_number", type="string", length=255, nullable=true)
167
     */
168
    private $tracking_number;
169
170
    /**
171
     * @var string
172
     *
173
     * @ORM\Column(name="note", type="string", length=4000, nullable=true)
174
     */
175
    private $note;
176
177
    /**
178
     * @var int|null
179
     *
180
     * @ORM\Column(name="sort_no", type="smallint", nullable=true, options={"unsigned":true})
181
     */
182
    private $sort_no;
183
184
    /**
185
     * @var \DateTime
186
     *
187
     * @ORM\Column(name="create_date", type="datetimetz")
188
     */
189
    private $create_date;
190
191
    /**
192
     * @var \DateTime
193
     *
194
     * @ORM\Column(name="update_date", type="datetimetz")
195
     */
196
    private $update_date;
197
198
    /**
199
     * @var \DateTime
200
     *
201
     * @ORM\Column(name="mail_send_date", type="datetimetz", nullable=true)
202
     */
203
    private $mail_send_date;
204
205
    /**
206
     * @var \Eccube\Entity\Order
207
     *
208
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Order", inversedBy="Shippings", cascade={"persist"})
209
     * @ORM\JoinColumns({
210
     *   @ORM\JoinColumn(name="order_id", referencedColumnName="id")
211
     * })
212
     */
213
    private $Order;
214
215
    /**
216
     * @var \Doctrine\Common\Collections\Collection
217
     *
218
     * @ORM\OneToMany(targetEntity="Eccube\Entity\OrderItem", mappedBy="Shipping", cascade={"persist"})
219
     */
220
    private $OrderItems;
221
222
    /**
223
     * @var \Eccube\Entity\Master\Country
224
     *
225
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country")
226
     * @ORM\JoinColumns({
227
     *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
228
     * })
229
     */
230
    private $Country;
231
232
    /**
233
     * @var \Eccube\Entity\Master\Pref
234
     *
235
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
236
     * @ORM\JoinColumns({
237
     *   @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
238
     * })
239
     */
240
    private $Pref;
241
242
    /**
243
     * @var \Eccube\Entity\Delivery
244
     *
245
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery")
246
     * @ORM\JoinColumns({
247
     *   @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
248
     * })
249
     */
250
    private $Delivery;
251
252
    /**
253
     * @var \Eccube\Entity\ProductClass
254
     */
255
    private $ProductClassOfTemp;
256
257
    /**
258
     * @var \Eccube\Entity\Member
259
     *
260
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Member")
261
     * @ORM\JoinColumns({
262
     *   @ORM\JoinColumn(name="creator_id", referencedColumnName="id")
263
     * })
264
     */
265
    private $Creator;
266
267
    /**
268
     * Constructor
269
     */
270 233
    public function __construct()
271
    {
272 233
        $this->OrderItems = new \Doctrine\Common\Collections\ArrayCollection();
273
    }
274
275
    /**
276
     * CustomerAddress から個人情報を設定.
277
     *
278
     * @param \Eccube\Entity\CustomerAddress $CustomerAddress
279
     *
280
     * @return \Eccube\Entity\Shipping
281
     */
282 25 View Code Duplication
    public function setFromCustomerAddress(CustomerAddress $CustomerAddress)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
283
    {
284
        $this
285 25
            ->setName01($CustomerAddress->getName01())
286 25
            ->setName02($CustomerAddress->getName02())
287 25
            ->setKana01($CustomerAddress->getKana01())
288 25
            ->setKana02($CustomerAddress->getKana02())
289 25
            ->setCompanyName($CustomerAddress->getCompanyName())
290 25
            ->setPhoneNumber($CustomerAddress->getPhonenumber())
291 25
            ->setPostalCode($CustomerAddress->getPostalCode())
292 25
            ->setPref($CustomerAddress->getPref())
293 25
            ->setAddr01($CustomerAddress->getAddr01())
294 25
            ->setAddr02($CustomerAddress->getAddr02());
295
296 25
        return $this;
297
    }
298
299
    /**
300
     * 個人情報をクリア.
301
     *
302
     * @return \Eccube\Entity\Shipping
303
     */
304
    public function clearCustomerAddress()
305
    {
306
        $this
307
            ->setName01(null)
308
            ->setName02(null)
309
            ->setKana01(null)
310
            ->setKana02(null)
311
            ->setCompanyName(null)
312
            ->setPhoneNumber(null)
313
            ->setPostalCode(null)
314
            ->setPref(null)
315
            ->setAddr01(null)
316
            ->setAddr02(null);
317
318
        return $this;
319
    }
320
321
    /**
322
     * Get id.
323
     *
324
     * @return int
325
     */
326 85
    public function getId()
327
    {
328 85
        return $this->id;
329
    }
330
331
    /**
332
     * Set name01.
333
     *
334
     * @param string $name01
335
     *
336
     * @return Shipping
337
     */
338 79
    public function setName01($name01)
339
    {
340 79
        $this->name01 = $name01;
341
342 79
        return $this;
343
    }
344
345
    /**
346
     * Get name01.
347
     *
348
     * @return string
349
     */
350 85
    public function getName01()
351
    {
352 85
        return $this->name01;
353
    }
354
355
    /**
356
     * Set name02.
357
     *
358
     * @param string $name02
359
     *
360
     * @return Shipping
361
     */
362 68
    public function setName02($name02)
363
    {
364 68
        $this->name02 = $name02;
365
366 68
        return $this;
367
    }
368
369
    /**
370
     * Get name02.
371
     *
372
     * @return string
373
     */
374 83
    public function getName02()
375
    {
376 83
        return $this->name02;
377
    }
378
379
    /**
380
     * Set kana01.
381
     *
382
     * @param string $kana01
383
     *
384
     * @return Shipping
385
     */
386 68
    public function setKana01($kana01)
387
    {
388 68
        $this->kana01 = $kana01;
389
390 68
        return $this;
391
    }
392
393
    /**
394
     * Get kana01.
395
     *
396
     * @return string
397
     */
398 76
    public function getKana01()
399
    {
400 76
        return $this->kana01;
401
    }
402
403
    /**
404
     * Set kana02.
405
     *
406
     * @param string $kana02
407
     *
408
     * @return Shipping
409
     */
410 67
    public function setKana02($kana02)
411
    {
412 67
        $this->kana02 = $kana02;
413
414 67
        return $this;
415
    }
416
417
    /**
418
     * Get kana02.
419
     *
420
     * @return string
421
     */
422 75
    public function getKana02()
423
    {
424 75
        return $this->kana02;
425
    }
426
427
    /**
428
     * Set companyName.
429
     *
430
     * @param string|null $companyName
431
     *
432
     * @return Shipping
433
     */
434 54
    public function setCompanyName($companyName = null)
435
    {
436 54
        $this->company_name = $companyName;
437
438 54
        return $this;
439
    }
440
441
    /**
442
     * Get companyName.
443
     *
444
     * @return string|null
445
     */
446 36
    public function getCompanyName()
447
    {
448 36
        return $this->company_name;
449
    }
450
451
    /**
452
     * Set phone_number.
453
     *
454
     * @param string|null $phone_number
455
     *
456
     * @return Shipping
457
     */
458 67
    public function setPhoneNumber($phone_number = null)
459
    {
460 67
        $this->phone_number = $phone_number;
461
462 67
        return $this;
463
    }
464
465
    /**
466
     * Get phone_number.
467
     *
468
     * @return string|null
469
     */
470 75
    public function getPhoneNumber()
471
    {
472 75
        return $this->phone_number;
473
    }
474
475
    /**
476
     * Set postal_code.
477
     *
478
     * @param string|null $postal_code
479
     *
480
     * @return Shipping
481
     */
482 67
    public function setPostalCode($postal_code = null)
483
    {
484 67
        $this->postal_code = $postal_code;
485
486 67
        return $this;
487
    }
488
489
    /**
490
     * Get postal_code.
491
     *
492
     * @return string|null
493
     */
494 75
    public function getPostalCode()
495
    {
496 75
        return $this->postal_code;
497
    }
498
499
    /**
500
     * Set addr01.
501
     *
502
     * @param string|null $addr01
503
     *
504
     * @return Shipping
505
     */
506 66
    public function setAddr01($addr01 = null)
507
    {
508 66
        $this->addr01 = $addr01;
509
510 66
        return $this;
511
    }
512
513
    /**
514
     * Get addr01.
515
     *
516
     * @return string|null
517
     */
518 75
    public function getAddr01()
519
    {
520 75
        return $this->addr01;
521
    }
522
523
    /**
524
     * Set addr02.
525
     *
526
     * @param string|null $addr02
527
     *
528
     * @return Shipping
529
     */
530 67
    public function setAddr02($addr02 = null)
531
    {
532 67
        $this->addr02 = $addr02;
533
534 67
        return $this;
535
    }
536
537
    /**
538
     * Get addr02.
539
     *
540
     * @return string|null
541
     */
542 75
    public function getAddr02()
543
    {
544 75
        return $this->addr02;
545
    }
546
547
    /**
548
     * Set shippingDeliveryName.
549
     *
550
     * @param string|null $shippingDeliveryName
551
     *
552
     * @return Shipping
553
     */
554 221
    public function setShippingDeliveryName($shippingDeliveryName = null)
555
    {
556 221
        $this->shipping_delivery_name = $shippingDeliveryName;
557
558 221
        return $this;
559
    }
560
561
    /**
562
     * Get shippingDeliveryName.
563
     *
564
     * @return string|null
565
     */
566 1
    public function getShippingDeliveryName()
567
    {
568 1
        return $this->shipping_delivery_name;
569
    }
570
571
    /**
572
     * Set shippingDeliveryTime.
573
     *
574
     * @param string|null $shippingDeliveryTime
575
     *
576
     * @return Shipping
577
     */
578 25
    public function setShippingDeliveryTime($shippingDeliveryTime = null)
579
    {
580 25
        $this->shipping_delivery_time = $shippingDeliveryTime;
581
582 25
        return $this;
583
    }
584
585
    /**
586
     * Get shippingDeliveryTime.
587
     *
588
     * @return string|null
589
     */
590 16
    public function getShippingDeliveryTime()
591
    {
592 16
        return $this->shipping_delivery_time;
593
    }
594
595
    /**
596
     * Set shippingDeliveryDate.
597
     *
598
     * @param \DateTime|null $shippingDeliveryDate
599
     *
600
     * @return Shipping
601
     */
602 43
    public function setShippingDeliveryDate($shippingDeliveryDate = null)
603
    {
604 43
        $this->shipping_delivery_date = $shippingDeliveryDate;
605
606 43
        return $this;
607
    }
608
609
    /**
610
     * Get shippingDeliveryDate.
611
     *
612
     * @return \DateTime|null
613
     */
614 69
    public function getShippingDeliveryDate()
615
    {
616 69
        return $this->shipping_delivery_date;
617
    }
618
619
    /**
620
     * Set shippingDeliveryFee.
621
     *
622
     * @param string|null $shippingDeliveryFee
623
     *
624
     * @return Shipping
625
     */
626 208
    public function setShippingDeliveryFee($shippingDeliveryFee = null)
627
    {
628 208
        $this->shipping_delivery_fee = $shippingDeliveryFee;
629
630 208
        return $this;
631
    }
632
633
    /**
634
     * Get shippingDeliveryFee.
635
     *
636
     * @return string|null
637
     */
638 208
    public function getShippingDeliveryFee()
639
    {
640 208
        return $this->shipping_delivery_fee;
641
    }
642
643
    /**
644
     * Set shippingDate.
645
     *
646
     * @param \DateTime|null $shippingDate
647
     *
648
     * @return Shipping
649
     */
650 7
    public function setShippingDate($shippingDate = null)
651
    {
652 7
        $this->shipping_date = $shippingDate;
653
654 7
        return $this;
655
    }
656
657
    /**
658
     * Get shippingDate.
659
     *
660
     * @return \DateTime|null
661
     */
662 22
    public function getShippingDate()
663
    {
664 22
        return $this->shipping_date;
665
    }
666
667
    /**
668
     * Set sortNo.
669
     *
670
     * @param int|null $sortNo
671
     *
672
     * @return Shipping
673
     */
674
    public function setSortNo($sortNo = null)
675
    {
676
        $this->sort_no = $sortNo;
677
678
        return $this;
679
    }
680
681
    /**
682
     * Get sortNo.
683
     *
684
     * @return int|null
685
     */
686
    public function getSortNo()
687
    {
688
        return $this->sort_no;
689
    }
690
691
    /**
692
     * Set createDate.
693
     *
694
     * @param \DateTime $createDate
695
     *
696
     * @return Shipping
697
     */
698 210
    public function setCreateDate($createDate)
699
    {
700 210
        $this->create_date = $createDate;
701
702 210
        return $this;
703
    }
704
705
    /**
706
     * Get createDate.
707
     *
708
     * @return \DateTime
709
     */
710
    public function getCreateDate()
711
    {
712
        return $this->create_date;
713
    }
714
715
    /**
716
     * Set updateDate.
717
     *
718
     * @param \DateTime $updateDate
719
     *
720
     * @return Shipping
721
     */
722 210
    public function setUpdateDate($updateDate)
723
    {
724 210
        $this->update_date = $updateDate;
725
726 210
        return $this;
727
    }
728
729
    /**
730
     * Get updateDate.
731
     *
732
     * @return \DateTime
733
     */
734 2
    public function getUpdateDate()
735
    {
736 2
        return $this->update_date;
737
    }
738
739
    /**
740
     * Set mailSendDate.
741
     *
742
     * @param \DateTime $mailSendDate
743
     *
744
     * @return Shipping
745
     */
746 3
    public function setMailSendDate($mailSendDate)
747
    {
748 3
        $this->mail_send_date = $mailSendDate;
749
750 3
        return $this;
751
    }
752
753
    /**
754
     * Get mailSendDate.
755
     *
756
     * @return \DateTime
757
     */
758 2
    public function getMailSendDate()
759
    {
760 2
        return $this->mail_send_date;
761
    }
762
763
    /**
764
     * Add orderItem.
765
     *
766
     * @param \Eccube\Entity\OrderItem $OrderItem
767
     *
768
     * @return Shipping
769
     */
770 219
    public function addOrderItem(\Eccube\Entity\OrderItem $OrderItem)
771
    {
772 219
        $this->OrderItems[] = $OrderItem;
773
774 219
        return $this;
775
    }
776
777
    /**
778
     * Remove orderItem.
779
     *
780
     * @param \Eccube\Entity\OrderItem $OrderItem
781
     *
782
     * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
783
     */
784 28
    public function removeOrderItem(\Eccube\Entity\OrderItem $OrderItem)
785
    {
786 28
        return $this->OrderItems->removeElement($OrderItem);
787
    }
788
789
    /**
790
     * Get orderItems.
791
     *
792
     * @return \Doctrine\Common\Collections\Collection
793
     */
794 87
    public function getOrderItems()
795
    {
796 87
        return (new ItemCollection($this->OrderItems))->sort();
797
    }
798
799
    /**
800
     * 商品の受注明細を取得
801
     *
802
     * @return OrderItem[]
803
     */
804 60
    public function getProductOrderItems()
805
    {
806 60
        $sio = new OrderItemCollection($this->OrderItems->toArray());
807
808 60
        return $sio->getProductClasses()->toArray();
809
    }
810
811
    /**
812
     * Set country.
813
     *
814
     * @param \Eccube\Entity\Master\Country|null $country
815
     *
816
     * @return Shipping
817
     */
818
    public function setCountry(\Eccube\Entity\Master\Country $country = null)
819
    {
820
        $this->Country = $country;
821
822
        return $this;
823
    }
824
825
    /**
826
     * Get country.
827
     *
828
     * @return \Eccube\Entity\Master\Country|null
829
     */
830
    public function getCountry()
831
    {
832
        return $this->Country;
833
    }
834
835
    /**
836
     * Set pref.
837
     *
838
     * @param \Eccube\Entity\Master\Pref|null $pref
839
     *
840
     * @return Shipping
841
     */
842 221
    public function setPref(\Eccube\Entity\Master\Pref $pref = null)
843
    {
844 221
        $this->Pref = $pref;
845
846 221
        return $this;
847
    }
848
849
    /**
850
     * Get pref.
851
     *
852
     * @return \Eccube\Entity\Master\Pref|null
853
     */
854 89
    public function getPref()
855
    {
856 89
        return $this->Pref;
857
    }
858
859
    /**
860
     * Set delivery.
861
     *
862
     * @param \Eccube\Entity\Delivery|null $delivery
863
     *
864
     * @return Shipping
865
     */
866 221
    public function setDelivery(\Eccube\Entity\Delivery $delivery = null)
867
    {
868 221
        $this->Delivery = $delivery;
869
870 221
        return $this;
871
    }
872
873
    /**
874
     * Get delivery.
875
     *
876
     * @return \Eccube\Entity\Delivery|null
877
     */
878 73
    public function getDelivery()
879
    {
880 73
        return $this->Delivery;
881
    }
882
883
    /**
884
     * Product class of shipment item (temp)
885
     *
886
     * @return \Eccube\Entity\ProductClass
887
     */
888 26
    public function getProductClassOfTemp()
889
    {
890 26
        return $this->ProductClassOfTemp;
891
    }
892
893
    /**
894
     * Product class of shipment item (temp)
895
     *
896
     * @param \Eccube\Entity\ProductClass $ProductClassOfTemp
897
     *
898
     * @return $this
899
     */
900 26
    public function setProductClassOfTemp(\Eccube\Entity\ProductClass $ProductClassOfTemp)
901
    {
902 26
        $this->ProductClassOfTemp = $ProductClassOfTemp;
903
904 26
        return $this;
905
    }
906
907
    /**
908
     * Set order.
909
     *
910
     * @param Order $Order
911
     *
912
     * @return $this
913
     */
914 221
    public function setOrder(Order $Order)
915
    {
916 221
        $this->Order = $Order;
917
918 221
        return $this;
919
    }
920
921
    /**
922
     * Get order.
923
     *
924
     * @return Order
925
     */
926 8
    public function getOrder()
927
    {
928 8
        return $this->Order;
929
    }
930
931
    /**
932
     * Set trackingNumber
933
     *
934
     * @param string $trackingNumber
935
     *
936
     * @return Shipping
937
     */
938 7
    public function setTrackingNumber($trackingNumber)
939
    {
940 7
        $this->tracking_number = $trackingNumber;
941
942 7
        return $this;
943
    }
944
945
    /**
946
     * Get trackingNumber
947
     *
948
     * @return string
949
     */
950 37
    public function getTrackingNumber()
951
    {
952 37
        return $this->tracking_number;
953
    }
954
955
    /**
956
     * Set note.
957
     *
958
     * @param string|null $note
959
     *
960
     * @return Shipping
961
     */
962
    public function setNote($note = null)
963
    {
964
        $this->note = $note;
965
966
        return $this;
967
    }
968
969
    /**
970
     * Get note.
971
     *
972
     * @return string|null
973
     */
974 21
    public function getNote()
975
    {
976 21
        return $this->note;
977
    }
978
979
    /**
980
     * 出荷済みの場合はtrue, 未出荷の場合はfalseを返す
981
     *
982
     * @return boolean
983
     */
984
    public function isShipped()
985
    {
986
        return !is_null($this->shipping_date);
987
    }
988
989
    /**
990
     * Set timeId
991
     *
992
     * @param integer $timeId
993
     *
994
     * @return Shipping
995
     */
996 25
    public function setTimeId($timeId)
997
    {
998 25
        $this->time_id = $timeId;
999
1000 25
        return $this;
1001
    }
1002
1003
    /**
1004
     * Get timeId
1005
     *
1006
     * @return integer
1007
     */
1008 59
    public function getTimeId()
1009
    {
1010 59
        return $this->time_id;
1011
    }
1012
1013
    /**
1014
     * Set feeId
1015
     *
1016
     * @param integer $feeId
1017
     *
1018
     * @return Shipping
1019
     */
1020 208
    public function setFeeId($feeId)
1021
    {
1022 208
        $this->fee_id = $feeId;
1023
1024 208
        return $this;
1025
    }
1026
1027
    /**
1028
     * Get feeId
1029
     *
1030
     * @return integer
1031
     */
1032
    public function getFeeId()
1033
    {
1034
        return $this->fee_id;
1035
    }
1036
1037
    /**
1038
     * Set creator.
1039
     *
1040
     * @param \Eccube\Entity\Member|null $creator
1041
     *
1042
     * @return Shipping
1043
     */
1044 11
    public function setCreator(\Eccube\Entity\Member $creator = null)
1045
    {
1046 11
        $this->Creator = $creator;
1047
1048 11
        return $this;
1049
    }
1050
1051
    /**
1052
     * Get creator.
1053
     *
1054
     * @return \Eccube\Entity\Member|null
1055
     */
1056 2
    public function getCreator()
1057
    {
1058 2
        return $this->Creator;
1059
    }
1060
}
1061