Failed Conditions
Pull Request — experimental/sf (#3236)
by Kentaro
49:41 queued 37:58
created

BaseInfo   F

Complexity

Total Complexity 79

Size/Duplication

Total Lines 1238
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 74.62%

Importance

Changes 0
Metric Value
dl 0
loc 1238
ccs 147
cts 197
cp 0.7462
rs 0.88
c 0
b 0
f 0
wmc 79
lcom 0
cbo 1

79 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setCompanyName() 0 6 1
A getCompanyName() 0 4 1
A setCompanyKana() 0 6 1
A getCompanyKana() 0 4 1
A setZip01() 0 6 1
A getZip01() 0 4 1
A setZip02() 0 6 1
A getZip02() 0 4 1
A setZipcode() 0 6 1
A getZipcode() 0 4 1
A setAddr01() 0 6 1
A getAddr01() 0 4 1
A setAddr02() 0 6 1
A getAddr02() 0 4 1
A setTel01() 0 6 1
A getTel01() 0 4 1
A setTel02() 0 6 1
A getTel02() 0 4 1
A setTel03() 0 6 1
A getTel03() 0 4 1
A setFax01() 0 6 1
A getFax01() 0 4 1
A setFax02() 0 6 1
A getFax02() 0 4 1
A setFax03() 0 6 1
A getFax03() 0 4 1
A setBusinessHour() 0 6 1
A getBusinessHour() 0 4 1
A setEmail01() 0 6 1
A getEmail01() 0 4 1
A setEmail02() 0 6 1
A getEmail02() 0 4 1
A setEmail03() 0 6 1
A getEmail03() 0 4 1
A setEmail04() 0 6 1
A getEmail04() 0 4 1
A setShopName() 0 6 1
A getShopName() 0 4 1
A setShopKana() 0 6 1
A getShopKana() 0 4 1
A setShopNameEng() 0 6 1
A getShopNameEng() 0 4 1
A setUpdateDate() 0 6 1
A getUpdateDate() 0 4 1
A setGoodTraded() 0 6 1
A getGoodTraded() 0 4 1
A setMessage() 0 6 1
A getMessage() 0 4 1
A setDeliveryFreeAmount() 0 6 1
A getDeliveryFreeAmount() 0 4 1
A setDeliveryFreeQuantity() 0 6 1
A getDeliveryFreeQuantity() 0 4 1
A setOptionMypageOrderStatusDisplay() 0 6 1
A isOptionMypageOrderStatusDisplay() 0 4 1
A setOptionNostockHidden() 0 6 1
A isOptionNostockHidden() 0 4 1
A setOptionFavoriteProduct() 0 6 1
A isOptionFavoriteProduct() 0 4 1
A setOptionProductDeliveryFee() 0 6 1
A isOptionProductDeliveryFee() 0 4 1
A setOptionProductTaxRule() 0 6 1
A isOptionProductTaxRule() 0 4 1
A setOptionCustomerActivate() 0 6 1
A isOptionCustomerActivate() 0 4 1
A setOptionRememberMe() 0 6 1
A isOptionRememberMe() 0 4 1
A setAuthenticationKey() 0 6 1
A getAuthenticationKey() 0 4 1
A setCountry() 0 6 1
A getCountry() 0 4 1
A setPref() 0 6 1
A getPref() 0 4 1
A setOptionPoint() 0 6 1
A isOptionPoint() 0 4 1
A setPointConversionRate() 0 6 1
A getPointConversionRate() 0 4 1
A setBasicPointRate() 0 6 1
A getBasicPointRate() 0 4 1

How to fix   Complexity   

Complex Class

Complex classes like BaseInfo 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 BaseInfo, and based on these observations, apply Extract Interface, too.

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
18
/**
19
 * BaseInfo
20
 *
21
 * @ORM\Table(name="dtb_base_info")
22
 * @ORM\InheritanceType("SINGLE_TABLE")
23
 * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
24
 * @ORM\HasLifecycleCallbacks()
25
 * @ORM\Entity(repositoryClass="Eccube\Repository\BaseInfoRepository")
26
 * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
27
 */
28
class BaseInfo extends \Eccube\Entity\AbstractEntity
29
{
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="id", type="integer", options={"unsigned":true})
34
     * @ORM\Id
35
     * @ORM\GeneratedValue(strategy="IDENTITY")
36
     */
37
    private $id;
38
39
    /**
40
     * @var string|null
41
     *
42
     * @ORM\Column(name="company_name", type="string", length=255, nullable=true)
43
     */
44
    private $company_name;
45
46
    /**
47
     * @var string|null
48
     *
49
     * @ORM\Column(name="company_kana", type="string", length=255, nullable=true)
50
     */
51
    private $company_kana;
52
53
    /**
54
     * @var string|null
55
     *
56
     * @ORM\Column(name="zip01", type="string", length=3, nullable=true)
57
     */
58
    private $zip01;
59
60
    /**
61
     * @var string|null
62
     *
63
     * @ORM\Column(name="zip02", type="string", length=4, nullable=true)
64
     */
65
    private $zip02;
66
67
    /**
68
     * @var string|null
69
     *
70
     * @ORM\Column(name="zipcode", type="string", length=7, nullable=true)
71
     */
72
    private $zipcode;
73
74
    /**
75
     * @var string|null
76
     *
77
     * @ORM\Column(name="addr01", type="string", length=255, nullable=true)
78
     */
79
    private $addr01;
80
81
    /**
82
     * @var string|null
83
     *
84
     * @ORM\Column(name="addr02", type="string", length=255, nullable=true)
85
     */
86
    private $addr02;
87
88
    /**
89
     * @var string|null
90
     *
91
     * @ORM\Column(name="tel01", type="string", length=5, nullable=true)
92
     */
93
    private $tel01;
94
95
    /**
96
     * @var string|null
97
     *
98
     * @ORM\Column(name="tel02", type="string", length=4, nullable=true)
99
     */
100
    private $tel02;
101
102
    /**
103
     * @var string|null
104
     *
105
     * @ORM\Column(name="tel03", type="string", length=4, nullable=true)
106
     */
107
    private $tel03;
108
109
    /**
110
     * @var string|null
111
     *
112
     * @ORM\Column(name="fax01", type="string", length=5, nullable=true)
113
     */
114
    private $fax01;
115
116
    /**
117
     * @var string|null
118
     *
119
     * @ORM\Column(name="fax02", type="string", length=4, nullable=true)
120
     */
121
    private $fax02;
122
123
    /**
124
     * @var string|null
125
     *
126
     * @ORM\Column(name="fax03", type="string", length=4, nullable=true)
127
     */
128
    private $fax03;
129
130
    /**
131
     * @var string|null
132
     *
133
     * @ORM\Column(name="business_hour", type="string", length=255, nullable=true)
134
     */
135
    private $business_hour;
136
137
    /**
138
     * @var string|null
139
     *
140
     * @ORM\Column(name="email01", type="string", length=255, nullable=true)
141
     */
142
    private $email01;
143
144
    /**
145
     * @var string|null
146
     *
147
     * @ORM\Column(name="email02", type="string", length=255, nullable=true)
148
     */
149
    private $email02;
150
151
    /**
152
     * @var string|null
153
     *
154
     * @ORM\Column(name="email03", type="string", length=255, nullable=true)
155
     */
156
    private $email03;
157
158
    /**
159
     * @var string|null
160
     *
161
     * @ORM\Column(name="email04", type="string", length=255, nullable=true)
162
     */
163
    private $email04;
164
165
    /**
166
     * @var string|null
167
     *
168
     * @ORM\Column(name="shop_name", type="string", length=255, nullable=true)
169
     */
170
    private $shop_name;
171
172
    /**
173
     * @var string|null
174
     *
175
     * @ORM\Column(name="shop_kana", type="string", length=255, nullable=true)
176
     */
177
    private $shop_kana;
178
179
    /**
180
     * @var string|null
181
     *
182
     * @ORM\Column(name="shop_name_eng", type="string", length=255, nullable=true)
183
     */
184
    private $shop_name_eng;
185
186
    /**
187
     * @var \DateTime
188
     *
189
     * @ORM\Column(name="update_date", type="datetimetz")
190
     */
191
    private $update_date;
192
193
    /**
194
     * @var string|null
195
     *
196
     * @ORM\Column(name="good_traded", type="string", length=4000, nullable=true)
197
     */
198
    private $good_traded;
199
200
    /**
201
     * @var string|null
202
     *
203
     * @ORM\Column(name="message", type="string", length=4000, nullable=true)
204
     */
205
    private $message;
206
207
    /**
208
     * @var string|null
209
     *
210
     * @ORM\Column(name="delivery_free_amount", type="decimal", precision=12, scale=2, nullable=true)
211
     */
212
    private $delivery_free_amount;
213
214
    /**
215
     * @var int|null
216
     *
217
     * @ORM\Column(name="delivery_free_quantity", type="integer", nullable=true, options={"unsigned":true})
218
     */
219
    private $delivery_free_quantity;
220
221
    /**
222
     * @var boolean
223
     *
224
     * @ORM\Column(name="option_mypage_order_status_display", type="boolean", options={"default":true})
225
     */
226
    private $option_mypage_order_status_display = true;
227
228
    /**
229
     * @var boolean
230
     *
231
     * @ORM\Column(name="option_nostock_hidden", type="boolean", options={"default":false})
232
     */
233
    private $option_nostock_hidden = false;
234
235
    /**
236
     * @var boolean
237
     *
238
     * @ORM\Column(name="option_favorite_product", type="boolean", options={"default":true})
239
     */
240
    private $option_favorite_product = true;
241
242
    /**
243
     * @var boolean
244
     *
245
     * @ORM\Column(name="option_product_delivery_fee", type="boolean", options={"default":false})
246
     */
247
    private $option_product_delivery_fee = false;
248
249
    /**
250
     * @var boolean
251
     *
252
     * @ORM\Column(name="option_product_tax_rule", type="boolean", options={"default":false})
253
     */
254
    private $option_product_tax_rule = false;
255
256
    /**
257
     * @var boolean
258
     *
259
     * @ORM\Column(name="option_customer_activate", type="boolean", options={"default":true})
260
     */
261
    private $option_customer_activate = true;
262
263
    /**
264
     * @var boolean
265
     *
266
     * @ORM\Column(name="option_remember_me", type="boolean", options={"default":true})
267
     */
268
    private $option_remember_me = true;
269
270
    /**
271
     * @var string|null
272
     *
273
     * @ORM\Column(name="authentication_key", type="string", length=255, nullable=true)
274
     */
275
    private $authentication_key;
276
277
    /**
278
     * @var boolean
279
     *
280
     * @ORM\Column(name="option_point", type="boolean", options={"default":true})
281
     */
282
    private $option_point = true;
283
284
    /**
285
     * @var string
286
     *
287
     * @ORM\Column(name="basic_point_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true)
288
     */
289
    private $basic_point_rate = '1';
290
291
    /**
292
     * @var string
293
     *
294
     * @ORM\Column(name="point_conversion_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true)
295
     */
296
    private $point_conversion_rate = '1';
297
298
    /**
299
     * @var \Eccube\Entity\Master\Country
300
     *
301
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country")
302
     * @ORM\JoinColumns({
303
     *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
304
     * })
305
     * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
306
     */
307
    private $Country;
308
309
    /**
310
     * @var \Eccube\Entity\Master\Pref
311
     *
312
     * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
313
     * @ORM\JoinColumns({
314
     *   @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
315
     * })
316
     * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
317
     */
318
    private $Pref;
319
320
    /**
321
     * Get id.
322
     *
323
     * @return int
324
     */
325 2
    public function getId()
326
    {
327 2
        return $this->id;
328
    }
329
330
    /**
331
     * Set companyName.
332
     *
333
     * @param string|null $companyName
334
     *
335
     * @return BaseInfo
336
     */
337 2
    public function setCompanyName($companyName = null)
338
    {
339 2
        $this->company_name = $companyName;
340
341 2
        return $this;
342
    }
343
344
    /**
345
     * Get companyName.
346
     *
347
     * @return string|null
348
     */
349 12
    public function getCompanyName()
350
    {
351 12
        return $this->company_name;
352
    }
353
354
    /**
355
     * Set companyKana.
356
     *
357
     * @param string|null $companyKana
358
     *
359
     * @return BaseInfo
360
     */
361
    public function setCompanyKana($companyKana = null)
362
    {
363
        $this->company_kana = $companyKana;
364
365
        return $this;
366
    }
367
368
    /**
369
     * Get companyKana.
370
     *
371
     * @return string|null
372
     */
373 9
    public function getCompanyKana()
374
    {
375 9
        return $this->company_kana;
376
    }
377
378
    /**
379
     * Set zip01.
380
     *
381
     * @param string|null $zip01
382
     *
383
     * @return BaseInfo
384
     */
385
    public function setZip01($zip01 = null)
386
    {
387
        $this->zip01 = $zip01;
388
389
        return $this;
390
    }
391
392
    /**
393
     * Get zip01.
394
     *
395
     * @return string|null
396
     */
397 10
    public function getZip01()
398
    {
399 10
        return $this->zip01;
400
    }
401
402
    /**
403
     * Set zip02.
404
     *
405
     * @param string|null $zip02
406
     *
407
     * @return BaseInfo
408
     */
409
    public function setZip02($zip02 = null)
410
    {
411
        $this->zip02 = $zip02;
412
413
        return $this;
414
    }
415
416
    /**
417
     * Get zip02.
418
     *
419
     * @return string|null
420
     */
421 10
    public function getZip02()
422
    {
423 10
        return $this->zip02;
424
    }
425
426
    /**
427
     * Set zipcode.
428
     *
429
     * @param string|null $zipcode
430
     *
431
     * @return BaseInfo
432
     */
433
    public function setZipcode($zipcode = null)
434
    {
435
        $this->zipcode = $zipcode;
436
437
        return $this;
438
    }
439
440
    /**
441
     * Get zipcode.
442
     *
443
     * @return string|null
444
     */
445
    public function getZipcode()
446
    {
447
        return $this->zipcode;
448
    }
449
450
    /**
451
     * Set addr01.
452
     *
453
     * @param string|null $addr01
454
     *
455
     * @return BaseInfo
456
     */
457 2
    public function setAddr01($addr01 = null)
458
    {
459 2
        $this->addr01 = $addr01;
460
461 2
        return $this;
462
    }
463
464
    /**
465
     * Get addr01.
466
     *
467
     * @return string|null
468
     */
469 10
    public function getAddr01()
470
    {
471 10
        return $this->addr01;
472
    }
473
474
    /**
475
     * Set addr02.
476
     *
477
     * @param string|null $addr02
478
     *
479
     * @return BaseInfo
480
     */
481 2
    public function setAddr02($addr02 = null)
482
    {
483 2
        $this->addr02 = $addr02;
484
485 2
        return $this;
486
    }
487
488
    /**
489
     * Get addr02.
490
     *
491
     * @return string|null
492
     */
493 10
    public function getAddr02()
494
    {
495 10
        return $this->addr02;
496
    }
497
498
    /**
499
     * Set tel01.
500
     *
501
     * @param string|null $tel01
502
     *
503
     * @return BaseInfo
504
     */
505 7
    public function setTel01($tel01 = null)
506
    {
507 7
        $this->tel01 = $tel01;
508
509 7
        return $this;
510
    }
511
512
    /**
513
     * Get tel01.
514
     *
515
     * @return string|null
516
     */
517 10
    public function getTel01()
518
    {
519 10
        return $this->tel01;
520
    }
521
522
    /**
523
     * Set tel02.
524
     *
525
     * @param string|null $tel02
526
     *
527
     * @return BaseInfo
528
     */
529 7
    public function setTel02($tel02 = null)
530
    {
531 7
        $this->tel02 = $tel02;
532
533 7
        return $this;
534
    }
535
536
    /**
537
     * Get tel02.
538
     *
539
     * @return string|null
540
     */
541 10
    public function getTel02()
542
    {
543 10
        return $this->tel02;
544
    }
545
546
    /**
547
     * Set tel03.
548
     *
549
     * @param string|null $tel03
550
     *
551
     * @return BaseInfo
552
     */
553 7
    public function setTel03($tel03 = null)
554
    {
555 7
        $this->tel03 = $tel03;
556
557 7
        return $this;
558
    }
559
560
    /**
561
     * Get tel03.
562
     *
563
     * @return string|null
564
     */
565 10
    public function getTel03()
566
    {
567 10
        return $this->tel03;
568
    }
569
570
    /**
571
     * Set fax01.
572
     *
573
     * @param string|null $fax01
574
     *
575
     * @return BaseInfo
576
     */
577 7
    public function setFax01($fax01 = null)
578
    {
579 7
        $this->fax01 = $fax01;
580
581 7
        return $this;
582
    }
583
584
    /**
585
     * Get fax01.
586
     *
587
     * @return string|null
588
     */
589 10
    public function getFax01()
590
    {
591 10
        return $this->fax01;
592
    }
593
594
    /**
595
     * Set fax02.
596
     *
597
     * @param string|null $fax02
598
     *
599
     * @return BaseInfo
600
     */
601 7
    public function setFax02($fax02 = null)
602
    {
603 7
        $this->fax02 = $fax02;
604
605 7
        return $this;
606
    }
607
608
    /**
609
     * Get fax02.
610
     *
611
     * @return string|null
612
     */
613 10
    public function getFax02()
614
    {
615 10
        return $this->fax02;
616
    }
617
618
    /**
619
     * Set fax03.
620
     *
621
     * @param string|null $fax03
622
     *
623
     * @return BaseInfo
624
     */
625 7
    public function setFax03($fax03 = null)
626
    {
627 7
        $this->fax03 = $fax03;
628
629 7
        return $this;
630
    }
631
632
    /**
633
     * Get fax03.
634
     *
635
     * @return string|null
636
     */
637 10
    public function getFax03()
638
    {
639 10
        return $this->fax03;
640
    }
641
642
    /**
643
     * Set businessHour.
644
     *
645
     * @param string|null $businessHour
646
     *
647
     * @return BaseInfo
648
     */
649
    public function setBusinessHour($businessHour = null)
650
    {
651
        $this->business_hour = $businessHour;
652
653
        return $this;
654
    }
655
656
    /**
657
     * Get businessHour.
658
     *
659
     * @return string|null
660
     */
661 10
    public function getBusinessHour()
662
    {
663 10
        return $this->business_hour;
664
    }
665
666
    /**
667
     * Set email01.
668
     *
669
     * @param string|null $email01
670
     *
671
     * @return BaseInfo
672
     */
673 10
    public function setEmail01($email01 = null)
674
    {
675 10
        $this->email01 = $email01;
676
677 10
        return $this;
678
    }
679
680
    /**
681
     * Get email01.
682
     *
683
     * @return string|null
684
     */
685 34
    public function getEmail01()
686
    {
687 34
        return $this->email01;
688
    }
689
690
    /**
691
     * Set email02.
692
     *
693
     * @param string|null $email02
694
     *
695
     * @return BaseInfo
696
     */
697 8
    public function setEmail02($email02 = null)
698
    {
699 8
        $this->email02 = $email02;
700
701 8
        return $this;
702
    }
703
704
    /**
705
     * Get email02.
706
     *
707
     * @return string|null
708
     */
709 23
    public function getEmail02()
710
    {
711 23
        return $this->email02;
712
    }
713
714
    /**
715
     * Set email03.
716
     *
717
     * @param string|null $email03
718
     *
719
     * @return BaseInfo
720
     */
721 8
    public function setEmail03($email03 = null)
722
    {
723 8
        $this->email03 = $email03;
724
725 8
        return $this;
726
    }
727
728
    /**
729
     * Get email03.
730
     *
731
     * @return string|null
732
     */
733 34
    public function getEmail03()
734
    {
735 34
        return $this->email03;
736
    }
737
738
    /**
739
     * Set email04.
740
     *
741
     * @param string|null $email04
742
     *
743
     * @return BaseInfo
744
     */
745 8
    public function setEmail04($email04 = null)
746
    {
747 8
        $this->email04 = $email04;
748
749 8
        return $this;
750
    }
751
752
    /**
753
     * Get email04.
754
     *
755
     * @return string|null
756
     */
757 37
    public function getEmail04()
758
    {
759 37
        return $this->email04;
760
    }
761
762
    /**
763
     * Set shopName.
764
     *
765
     * @param string|null $shopName
766
     *
767
     * @return BaseInfo
768
     */
769 10
    public function setShopName($shopName = null)
770
    {
771 10
        $this->shop_name = $shopName;
772
773 10
        return $this;
774
    }
775
776
    /**
777
     * Get shopName.
778
     *
779
     * @return string|null
780
     */
781 290
    public function getShopName()
782
    {
783 290
        return $this->shop_name;
784
    }
785
786
    /**
787
     * Set shopKana.
788
     *
789
     * @param string|null $shopKana
790
     *
791
     * @return BaseInfo
792
     */
793
    public function setShopKana($shopKana = null)
794
    {
795
        $this->shop_kana = $shopKana;
796
797
        return $this;
798
    }
799
800
    /**
801
     * Get shopKana.
802
     *
803
     * @return string|null
804
     */
805 9
    public function getShopKana()
806
    {
807 9
        return $this->shop_kana;
808
    }
809
810
    /**
811
     * Set shopNameEng.
812
     *
813
     * @param string|null $shopNameEng
814
     *
815
     * @return BaseInfo
816
     */
817
    public function setShopNameEng($shopNameEng = null)
818
    {
819
        $this->shop_name_eng = $shopNameEng;
820
821
        return $this;
822
    }
823
824
    /**
825
     * Get shopNameEng.
826
     *
827
     * @return string|null
828
     */
829 9
    public function getShopNameEng()
830
    {
831 9
        return $this->shop_name_eng;
832
    }
833
834
    /**
835
     * Set updateDate.
836
     *
837
     * @param \DateTime $updateDate
838
     *
839
     * @return BaseInfo
840
     */
841 43
    public function setUpdateDate($updateDate)
842
    {
843 43
        $this->update_date = $updateDate;
844
845 43
        return $this;
846
    }
847
848
    /**
849
     * Get updateDate.
850
     *
851
     * @return \DateTime
852
     */
853
    public function getUpdateDate()
854
    {
855
        return $this->update_date;
856
    }
857
858
    /**
859
     * Set goodTraded.
860
     *
861
     * @param string|null $goodTraded
862
     *
863
     * @return BaseInfo
864
     */
865
    public function setGoodTraded($goodTraded = null)
866
    {
867
        $this->good_traded = $goodTraded;
868
869
        return $this;
870
    }
871
872
    /**
873
     * Get goodTraded.
874
     *
875
     * @return string|null
876
     */
877 10
    public function getGoodTraded()
878
    {
879 10
        return $this->good_traded;
880
    }
881
882
    /**
883
     * Set message.
884
     *
885
     * @param string|null $message
886
     *
887
     * @return BaseInfo
888
     */
889
    public function setMessage($message = null)
890
    {
891
        $this->message = $message;
892
893
        return $this;
894
    }
895
896
    /**
897
     * Get message.
898
     *
899
     * @return string|null
900
     */
901 10
    public function getMessage()
902
    {
903 10
        return $this->message;
904
    }
905
906
    /**
907
     * Set deliveryFreeAmount.
908
     *
909
     * @param string|null $deliveryFreeAmount
910
     *
911
     * @return BaseInfo
912
     */
913 19
    public function setDeliveryFreeAmount($deliveryFreeAmount = null)
914
    {
915 19
        $this->delivery_free_amount = $deliveryFreeAmount;
916
917 19
        return $this;
918
    }
919
920
    /**
921
     * Get deliveryFreeAmount.
922
     *
923
     * @return string|null
924
     */
925 100
    public function getDeliveryFreeAmount()
926
    {
927 100
        return $this->delivery_free_amount;
928
    }
929
930
    /**
931
     * Set deliveryFreeQuantity.
932
     *
933
     * @param int|null $deliveryFreeQuantity
934
     *
935
     * @return BaseInfo
936
     */
937 19
    public function setDeliveryFreeQuantity($deliveryFreeQuantity = null)
938
    {
939 19
        $this->delivery_free_quantity = $deliveryFreeQuantity;
940
941 19
        return $this;
942
    }
943
944
    /**
945
     * Get deliveryFreeQuantity.
946
     *
947
     * @return int|null
948
     */
949 100
    public function getDeliveryFreeQuantity()
950
    {
951 100
        return $this->delivery_free_quantity;
952
    }
953
954
    /**
955
     * Set optionMypageOrderStatusDisplay.
956
     *
957
     * @param boolean $optionMypageOrderStatusDisplay
958
     *
959
     * @return BaseInfo
960
     */
961 8
    public function setOptionMypageOrderStatusDisplay($optionMypageOrderStatusDisplay)
962
    {
963 8
        $this->option_mypage_order_status_display = $optionMypageOrderStatusDisplay;
964
965 8
        return $this;
966
    }
967
968
    /**
969
     * Get optionMypageOrderStatusDisplay.
970
     *
971
     * @return boolean
972
     */
973 9
    public function isOptionMypageOrderStatusDisplay()
974
    {
975 9
        return $this->option_mypage_order_status_display;
976
    }
977
978
    /**
979
     * Set optionNostockHidden.
980
     *
981
     * @param integer $optionNostockHidden
982
     *
983
     * @return BaseInfo
984
     */
985
    public function setOptionNostockHidden($optionNostockHidden)
986
    {
987
        $this->option_nostock_hidden = $optionNostockHidden;
0 ignored issues
show
Documentation Bug introduced by
The property $option_nostock_hidden was declared of type boolean, but $optionNostockHidden is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
988
989
        return $this;
990
    }
991
992
    /**
993
     * Get optionNostockHidden.
994
     *
995
     * @return boolean
996
     */
997 9
    public function isOptionNostockHidden()
998
    {
999 9
        return $this->option_nostock_hidden;
1000
    }
1001
1002
    /**
1003
     * Set optionFavoriteProduct.
1004
     *
1005
     * @param boolean $optionFavoriteProduct
1006
     *
1007
     * @return BaseInfo
1008
     */
1009 11
    public function setOptionFavoriteProduct($optionFavoriteProduct)
1010
    {
1011 11
        $this->option_favorite_product = $optionFavoriteProduct;
1012
1013 11
        return $this;
1014
    }
1015
1016
    /**
1017
     * Get optionFavoriteProduct.
1018
     *
1019
     * @return boolean
1020
     */
1021 122
    public function isOptionFavoriteProduct()
1022
    {
1023 122
        return $this->option_favorite_product;
1024
    }
1025
1026
    /**
1027
     * Set optionProductDeliveryFee.
1028
     *
1029
     * @param boolean $optionProductDeliveryFee
1030
     *
1031
     * @return BaseInfo
1032
     */
1033
    public function setOptionProductDeliveryFee($optionProductDeliveryFee)
1034
    {
1035
        $this->option_product_delivery_fee = $optionProductDeliveryFee;
1036
1037
        return $this;
1038
    }
1039
1040
    /**
1041
     * Get optionProductDeliveryFee.
1042
     *
1043
     * @return boolean
1044
     */
1045 32
    public function isOptionProductDeliveryFee()
1046
    {
1047 32
        return $this->option_product_delivery_fee;
1048
    }
1049
1050
    /**
1051
     * Set optionProductTaxRule.
1052
     *
1053
     * @param boolean $optionProductTaxRule
1054
     *
1055
     * @return BaseInfo
1056
     */
1057 42
    public function setOptionProductTaxRule($optionProductTaxRule)
1058
    {
1059 42
        $this->option_product_tax_rule = $optionProductTaxRule;
1060
1061 42
        return $this;
1062
    }
1063
1064
    /**
1065
     * Get optionProductTaxRule.
1066
     *
1067
     * @return boolean
1068
     */
1069 391
    public function isOptionProductTaxRule()
1070
    {
1071 391
        return $this->option_product_tax_rule;
1072
    }
1073
1074
    /**
1075
     * Set optionCustomerActivate.
1076
     *
1077
     * @param boolean $optionCustomerActivate
1078
     *
1079
     * @return BaseInfo
1080
     */
1081 9
    public function setOptionCustomerActivate($optionCustomerActivate)
1082
    {
1083 9
        $this->option_customer_activate = $optionCustomerActivate;
1084
1085 9
        return $this;
1086
    }
1087
1088
    /**
1089
     * Get optionCustomerActivate.
1090
     *
1091
     * @return boolean
1092
     */
1093 10
    public function isOptionCustomerActivate()
1094
    {
1095 10
        return $this->option_customer_activate;
1096
    }
1097
1098
    /**
1099
     * Set optionRememberMe.
1100
     *
1101
     * @param boolean $optionRememberMe
1102
     *
1103
     * @return BaseInfo
1104
     */
1105 8
    public function setOptionRememberMe($optionRememberMe)
1106
    {
1107 8
        $this->option_remember_me = $optionRememberMe;
1108
1109 8
        return $this;
1110
    }
1111
1112
    /**
1113
     * Get optionRememberMe.
1114
     *
1115
     * @return boolean
1116
     */
1117 12
    public function isOptionRememberMe()
1118
    {
1119 12
        return $this->option_remember_me;
1120
    }
1121
1122
    /**
1123
     * Set authenticationKey.
1124
     *
1125
     * @param string|null $authenticationKey
1126
     *
1127
     * @return BaseInfo
1128
     */
1129
    public function setAuthenticationKey($authenticationKey = null)
1130
    {
1131
        $this->authentication_key = $authenticationKey;
1132
1133
        return $this;
1134
    }
1135
1136
    /**
1137
     * Get authenticationKey.
1138
     *
1139
     * @return string|null
1140
     */
1141
    public function getAuthenticationKey()
1142
    {
1143
        return $this->authentication_key;
1144
    }
1145
1146
    /**
1147
     * Set country.
1148
     *
1149
     * @param \Eccube\Entity\Master\Country|null $country
1150
     *
1151
     * @return BaseInfo
1152
     */
1153
    public function setCountry(\Eccube\Entity\Master\Country $country = null)
1154
    {
1155
        $this->Country = $country;
1156
1157
        return $this;
1158
    }
1159
1160
    /**
1161
     * Get country.
1162
     *
1163
     * @return \Eccube\Entity\Master\Country|null
1164
     */
1165
    public function getCountry()
1166
    {
1167
        return $this->Country;
1168
    }
1169
1170
    /**
1171
     * Set pref.
1172
     *
1173
     * @param \Eccube\Entity\Master\Pref|null $pref
1174
     *
1175
     * @return BaseInfo
1176
     */
1177
    public function setPref(\Eccube\Entity\Master\Pref $pref = null)
1178
    {
1179
        $this->Pref = $pref;
1180
1181
        return $this;
1182
    }
1183
1184
    /**
1185
     * Get pref.
1186
     *
1187
     * @return \Eccube\Entity\Master\Pref|null
1188
     */
1189 10
    public function getPref()
1190
    {
1191 10
        return $this->Pref;
1192
    }
1193
1194
    /**
1195
     * Set optionPoint
1196
     *
1197
     * @param boolean $optionPoint
1198
     *
1199
     * @return BaseInfo
1200
     */
1201 8
    public function setOptionPoint($optionPoint)
1202
    {
1203 8
        $this->option_point = $optionPoint;
1204
1205 8
        return $this;
1206
    }
1207
1208
    /**
1209
     * Get optionPoint
1210
     *
1211
     * @return boolean
1212
     */
1213 56
    public function isOptionPoint()
1214
    {
1215 56
        return $this->option_point;
1216
    }
1217
1218
    /**
1219
     * Set pointConversionRate
1220
     *
1221
     * @param string $pointConversionRate
1222
     *
1223
     * @return BaseInfo
1224
     */
1225 11
    public function setPointConversionRate($pointConversionRate)
1226
    {
1227 11
        $this->point_conversion_rate = $pointConversionRate;
1228
1229 11
        return $this;
1230
    }
1231
1232
    /**
1233
     * Get pointConversionRate
1234
     *
1235
     * @return string
1236
     */
1237 11
    public function getPointConversionRate()
1238
    {
1239 11
        return $this->point_conversion_rate;
1240
    }
1241
1242
    /**
1243
     * Set basicPointRate
1244
     *
1245
     * @param string $basicPointRate
1246
     *
1247
     * @return BaseInfo
1248
     */
1249 11
    public function setBasicPointRate($basicPointRate)
1250
    {
1251 11
        $this->basic_point_rate = $basicPointRate;
1252
1253 11
        return $this;
1254
    }
1255
1256
    /**
1257
     * Get basicPointRate
1258
     *
1259
     * @return string
1260
     */
1261 197
    public function getBasicPointRate()
1262
    {
1263 197
        return $this->basic_point_rate;
1264
    }
1265
}
1266