Completed
Push — master ( e4bbaa...28180f )
by Joachim
13:50
created

ProductTranslation   F

Complexity

Total Complexity 80

Size/Duplication

Total Lines 995
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 80
dl 0
loc 995
rs 1.263
c 0
b 0
f 0

80 Methods

Rating   Name   Duplication   Size   Complexity  
A getPeriodFrontPage() 0 3 1
A getCustomField03() 0 3 1
A setRememberToBuyTextHeading() 0 4 1
A setRememberToBuyTextSubheading() 0 4 1
A setHidden() 0 4 1
A getUnitNumber() 0 3 1
A getCustomField04() 0 3 1
A setShowAsNew() 0 4 1
A setUrlName() 0 4 1
A setCustomField07() 0 4 1
A setPeriodNew() 0 4 1
A getTechDocLink2() 0 3 1
A getCustomField10() 0 3 1
A setCustomField08() 0 4 1
A getCustomField06() 0 3 1
A getRememberToBuyTextSubheading() 0 3 1
A setCustomField09() 0 4 1
A getCustomField09() 0 3 1
A getPageTitle() 0 3 1
A setCustomField04() 0 4 1
A getExpectedDeliveryTimeNotInStock() 0 3 1
A getRememberToBuyTextHeading() 0 3 1
A getImageAltText() 0 3 1
A setUnit() 0 4 1
A getShortDescription() 0 3 1
A getCustomField02() 0 3 1
A setCustomField03() 0 4 1
A setMetaDescription() 0 4 1
A getPeriodHidden() 0 3 1
A getShowOnFrontPage() 0 3 1
A getExpectedDeliveryTime() 0 3 1
A getTechDocLink() 0 3 1
A setShowOnFrontPage() 0 4 1
A getMetaDescription() 0 3 1
A getShowAsNew() 0 3 1
A setImageAltText() 0 4 1
A setRetailSalesPrice() 0 4 1
A setCustomField01() 0 4 1
A getPeriodNew() 0 3 1
A getName() 0 3 1
A getCustomField08() 0 3 1
A getRetailSalesPrice() 0 3 1
A setTechDocLink() 0 4 1
A setKeyWords() 0 4 1
A setExpectedDeliveryTimeNotInStock() 0 4 1
A getisTopListHidden() 0 3 1
A setLongDescription() 0 4 1
A setTechDocLink2() 0 4 1
A setCustomField02() 0 4 1
A setLongDescription2() 0 4 1
A setIsTopListHidden() 0 4 1
A getHidden() 0 3 1
A getUrlName() 0 3 1
A setUnitNumber() 0 4 1
A setGiftCertificatePdfBackgroundImage() 0 4 1
A setSortOrder() 0 4 1
A getCustomField01() 0 3 1
A setName() 0 4 1
A getCustomField05() 0 3 1
A setHiddenForMobile() 0 4 1
A setPeriodHidden() 0 4 1
A getUnit() 0 3 1
A getTechDocLink3() 0 3 1
A getLongDescription2() 0 3 1
A getGiftCertificatePdfBackgroundImage() 0 3 1
A getKeyWords() 0 3 1
A setShortDescription() 0 4 1
A setCustomField05() 0 4 1
A setPeriodFrontPage() 0 4 1
A setCustomField10() 0 4 1
A getLongDescription() 0 3 1
A setTechDocLink3() 0 4 1
A setSiteId() 0 4 1
A getCustomField07() 0 3 1
A getSortOrder() 0 3 1
A setPageTitle() 0 4 1
A getHiddenForMobile() 0 3 1
A getSiteId() 0 3 1
A setExpectedDeliveryTime() 0 4 1
A setCustomField06() 0 4 1

How to fix   Complexity   

Complex Class

Complex classes like ProductTranslation often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use ProductTranslation, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
7
use Loevgaard\DandomainFoundation\Entity\Generated\ProductTranslationInterface;
8
use Loevgaard\DandomainFoundation\Entity\Generated\ProductTranslationTrait;
9
10
/**
11
 * @ORM\Entity()
12
 * @ORM\Table(name="loevgaard_dandomain_product_translations")
13
 */
14
class ProductTranslation implements ProductTranslationInterface
15
{
16
    use ProductTranslationTrait;
17
    use Translation;
18
19
    /**
20
     * @var Period
21
     */
22
    protected $periodFrontPage;
23
24
    /**
25
     * @var Period
26
     */
27
    protected $periodHidden;
28
29
    /**
30
     * @var Period
31
     */
32
    protected $periodNew;
33
34
    /**
35
     * @var Unit
36
     */
37
    protected $unit;
38
39
    /**
40
     * @var string|null
41
     *
42
     * @ORM\Column(nullable=true, type="string", length=191)
43
     */
44
    protected $customField01;
45
46
    /**
47
     * @var string|null
48
     *
49
     * @ORM\Column(nullable=true, type="string", length=191)
50
     */
51
    protected $customField02;
52
53
    /**
54
     * @var string|null
55
     *
56
     * @ORM\Column(nullable=true, type="string", length=191)
57
     */
58
    protected $customField03;
59
60
    /**
61
     * @var string|null
62
     *
63
     * @ORM\Column(nullable=true, type="string", length=191)
64
     */
65
    protected $customField04;
66
67
    /**
68
     * @var string|null
69
     *
70
     * @ORM\Column(nullable=true, type="string", length=191)
71
     */
72
    protected $customField05;
73
74
    /**
75
     * @var string|null
76
     *
77
     * @ORM\Column(nullable=true, type="string", length=191)
78
     */
79
    protected $customField06;
80
81
    /**
82
     * @var string|null
83
     *
84
     * @ORM\Column(nullable=true, type="string", length=191)
85
     */
86
    protected $customField07;
87
88
    /**
89
     * @var string|null
90
     *
91
     * @ORM\Column(nullable=true, type="string", length=191)
92
     */
93
    protected $customField08;
94
95
    /**
96
     * @var string|null
97
     *
98
     * @ORM\Column(nullable=true, type="string", length=191)
99
     */
100
    protected $customField09;
101
102
    /**
103
     * @var string|null
104
     *
105
     * @ORM\Column(nullable=true, type="string", length=191)
106
     */
107
    protected $customField10;
108
109
    /**
110
     * @var \DateTimeImmutable|null
111
     *
112
     * @ORM\Column(nullable=true, type="datetime_immutable")
113
     */
114
    protected $expectedDeliveryTime;
115
116
    /**
117
     * @var \DateTimeImmutable|null
118
     *
119
     * @ORM\Column(nullable=true, type="datetime_immutable")
120
     */
121
    protected $expectedDeliveryTimeNotInStock;
122
123
    /**
124
     * @var string|null
125
     *
126
     * @ORM\Column(nullable=true, type="string", length=191)
127
     */
128
    protected $giftCertificatePdfBackgroundImage;
129
130
    /**
131
     * @var bool|null
132
     *
133
     * @ORM\Column(nullable=true, type="boolean")
134
     */
135
    protected $hidden;
136
137
    /**
138
     * @var bool|null
139
     *
140
     * @ORM\Column(nullable=true, type="boolean")
141
     */
142
    protected $hiddenForMobile;
143
144
    /**
145
     * @var string|null
146
     *
147
     * @ORM\Column(nullable=true, type="string", length=191)
148
     */
149
    protected $imageAltText;
150
151
    /**
152
     * @var bool|null
153
     *
154
     * @ORM\Column(nullable=true, type="boolean")
155
     */
156
    protected $isTopListHidden;
157
158
    /**
159
     * @var string|null
160
     *
161
     * @ORM\Column(nullable=true, type="string", length=191)
162
     */
163
    protected $keyWords;
164
165
    /**
166
     * @var string|null
167
     *
168
     * @ORM\Column(nullable=true, type="text")
169
     */
170
    protected $longDescription;
171
172
    /**
173
     * @var string|null
174
     *
175
     * @ORM\Column(nullable=true, type="text")
176
     */
177
    protected $longDescription2;
178
179
    /**
180
     * @var string|null
181
     *
182
     * @ORM\Column(nullable=true, type="text")
183
     */
184
    protected $metaDescription;
185
186
    /**
187
     * @var string|null
188
     *
189
     * @ORM\Column(nullable=true, type="string", length=191)
190
     */
191
    protected $name;
192
193
    /**
194
     * @var string|null
195
     *
196
     * @ORM\Column(nullable=true, type="string", length=191)
197
     */
198
    protected $pageTitle;
199
200
    /**
201
     * @var string|null
202
     *
203
     * @ORM\Column(nullable=true, type="string", length=191)
204
     */
205
    protected $rememberToBuyTextHeading;
206
207
    /**
208
     * @var string|null
209
     *
210
     * @ORM\Column(nullable=true, type="string", length=191)
211
     */
212
    protected $rememberToBuyTextSubheading;
213
214
    /**
215
     * @var float|null
216
     *
217
     * @ORM\Column(nullable=true, type="decimal", precision=12, scale=2)
218
     */
219
    protected $retailSalesPrice;
220
221
    /**
222
     * @var string|null
223
     *
224
     * @ORM\Column(nullable=true, type="string", length=191)
225
     */
226
    protected $shortDescription;
227
228
    /**
229
     * @var bool|null
230
     *
231
     * @ORM\Column(nullable=true, type="boolean")
232
     */
233
    protected $showAsNew;
234
235
    /**
236
     * @var bool|null
237
     *
238
     * @ORM\Column(nullable=true, type="boolean")
239
     */
240
    protected $showOnFrontPage;
241
242
    /**
243
     * @var int|null
244
     *
245
     * @ORM\Column(nullable=true, type="integer")
246
     */
247
    protected $siteId;
248
249
    /**
250
     * @var int|null
251
     *
252
     * @ORM\Column(nullable=true, type="integer")
253
     */
254
    protected $sortOrder;
255
256
    /**
257
     * @var string|null
258
     *
259
     * @ORM\Column(nullable=true, type="string", length=191)
260
     */
261
    protected $techDocLink;
262
263
    /**
264
     * @var string|null
265
     *
266
     * @ORM\Column(nullable=true, type="string", length=191)
267
     */
268
    protected $techDocLink2;
269
270
    /**
271
     * @var string|null
272
     *
273
     * @ORM\Column(nullable=true, type="string", length=191)
274
     */
275
    protected $techDocLink3;
276
277
    /**
278
     * @var string|null
279
     *
280
     * @ORM\Column(nullable=true, type="string", length=191)
281
     */
282
    protected $unitNumber;
283
284
    /**
285
     * @var string|null
286
     *
287
     * @ORM\Column(nullable=true, type="string", length=191)
288
     */
289
    protected $urlName;
290
291
    /**
292
     * @return Period
293
     */
294
    public function getPeriodFrontPage(): Period
295
    {
296
        return $this->periodFrontPage;
297
    }
298
299
    /**
300
     * @param Period $periodFrontPage
301
     * @return ProductTranslation
302
     */
303
    public function setPeriodFrontPage(Period $periodFrontPage)
304
    {
305
        $this->periodFrontPage = $periodFrontPage;
306
        return $this;
307
    }
308
309
    /**
310
     * @return Period
311
     */
312
    public function getPeriodHidden(): Period
313
    {
314
        return $this->periodHidden;
315
    }
316
317
    /**
318
     * @param Period $periodHidden
319
     * @return ProductTranslation
320
     */
321
    public function setPeriodHidden(Period $periodHidden)
322
    {
323
        $this->periodHidden = $periodHidden;
324
        return $this;
325
    }
326
327
    /**
328
     * @return Period
329
     */
330
    public function getPeriodNew(): Period
331
    {
332
        return $this->periodNew;
333
    }
334
335
    /**
336
     * @param Period $periodNew
337
     * @return ProductTranslation
338
     */
339
    public function setPeriodNew(Period $periodNew)
340
    {
341
        $this->periodNew = $periodNew;
342
        return $this;
343
    }
344
345
    /**
346
     * @return Unit
347
     */
348
    public function getUnit(): Unit
349
    {
350
        return $this->unit;
351
    }
352
353
    /**
354
     * @param Unit $unit
355
     * @return ProductTranslation
356
     */
357
    public function setUnit(Unit $unit)
358
    {
359
        $this->unit = $unit;
360
        return $this;
361
    }
362
363
    /**
364
     * @return null|string
365
     */
366
    public function getCustomField01(): ?string
367
    {
368
        return $this->customField01;
369
    }
370
371
    /**
372
     * @param null|string $customField01
373
     * @return ProductTranslation
374
     */
375
    public function setCustomField01(?string $customField01)
376
    {
377
        $this->customField01 = $customField01;
378
        return $this;
379
    }
380
381
    /**
382
     * @return null|string
383
     */
384
    public function getCustomField02(): ?string
385
    {
386
        return $this->customField02;
387
    }
388
389
    /**
390
     * @param null|string $customField02
391
     * @return ProductTranslation
392
     */
393
    public function setCustomField02(?string $customField02)
394
    {
395
        $this->customField02 = $customField02;
396
        return $this;
397
    }
398
399
    /**
400
     * @return null|string
401
     */
402
    public function getCustomField03(): ?string
403
    {
404
        return $this->customField03;
405
    }
406
407
    /**
408
     * @param null|string $customField03
409
     * @return ProductTranslation
410
     */
411
    public function setCustomField03(?string $customField03)
412
    {
413
        $this->customField03 = $customField03;
414
        return $this;
415
    }
416
417
    /**
418
     * @return null|string
419
     */
420
    public function getCustomField04(): ?string
421
    {
422
        return $this->customField04;
423
    }
424
425
    /**
426
     * @param null|string $customField04
427
     * @return ProductTranslation
428
     */
429
    public function setCustomField04(?string $customField04)
430
    {
431
        $this->customField04 = $customField04;
432
        return $this;
433
    }
434
435
    /**
436
     * @return null|string
437
     */
438
    public function getCustomField05(): ?string
439
    {
440
        return $this->customField05;
441
    }
442
443
    /**
444
     * @param null|string $customField05
445
     * @return ProductTranslation
446
     */
447
    public function setCustomField05(?string $customField05)
448
    {
449
        $this->customField05 = $customField05;
450
        return $this;
451
    }
452
453
    /**
454
     * @return null|string
455
     */
456
    public function getCustomField06(): ?string
457
    {
458
        return $this->customField06;
459
    }
460
461
    /**
462
     * @param null|string $customField06
463
     * @return ProductTranslation
464
     */
465
    public function setCustomField06(?string $customField06)
466
    {
467
        $this->customField06 = $customField06;
468
        return $this;
469
    }
470
471
    /**
472
     * @return null|string
473
     */
474
    public function getCustomField07(): ?string
475
    {
476
        return $this->customField07;
477
    }
478
479
    /**
480
     * @param null|string $customField07
481
     * @return ProductTranslation
482
     */
483
    public function setCustomField07(?string $customField07)
484
    {
485
        $this->customField07 = $customField07;
486
        return $this;
487
    }
488
489
    /**
490
     * @return null|string
491
     */
492
    public function getCustomField08(): ?string
493
    {
494
        return $this->customField08;
495
    }
496
497
    /**
498
     * @param null|string $customField08
499
     * @return ProductTranslation
500
     */
501
    public function setCustomField08(?string $customField08)
502
    {
503
        $this->customField08 = $customField08;
504
        return $this;
505
    }
506
507
    /**
508
     * @return null|string
509
     */
510
    public function getCustomField09(): ?string
511
    {
512
        return $this->customField09;
513
    }
514
515
    /**
516
     * @param null|string $customField09
517
     * @return ProductTranslation
518
     */
519
    public function setCustomField09(?string $customField09)
520
    {
521
        $this->customField09 = $customField09;
522
        return $this;
523
    }
524
525
    /**
526
     * @return null|string
527
     */
528
    public function getCustomField10(): ?string
529
    {
530
        return $this->customField10;
531
    }
532
533
    /**
534
     * @param null|string $customField10
535
     * @return ProductTranslation
536
     */
537
    public function setCustomField10(?string $customField10)
538
    {
539
        $this->customField10 = $customField10;
540
        return $this;
541
    }
542
543
    /**
544
     * @return \DateTimeImmutable|null
545
     */
546
    public function getExpectedDeliveryTime(): ?\DateTimeImmutable
547
    {
548
        return $this->expectedDeliveryTime;
549
    }
550
551
    /**
552
     * @param \DateTimeImmutable|null $expectedDeliveryTime
553
     * @return ProductTranslation
554
     */
555
    public function setExpectedDeliveryTime(?\DateTimeImmutable $expectedDeliveryTime)
556
    {
557
        $this->expectedDeliveryTime = $expectedDeliveryTime;
558
        return $this;
559
    }
560
561
    /**
562
     * @return \DateTimeImmutable|null
563
     */
564
    public function getExpectedDeliveryTimeNotInStock(): ?\DateTimeImmutable
565
    {
566
        return $this->expectedDeliveryTimeNotInStock;
567
    }
568
569
    /**
570
     * @param \DateTimeImmutable|null $expectedDeliveryTimeNotInStock
571
     * @return ProductTranslation
572
     */
573
    public function setExpectedDeliveryTimeNotInStock(?\DateTimeImmutable $expectedDeliveryTimeNotInStock)
574
    {
575
        $this->expectedDeliveryTimeNotInStock = $expectedDeliveryTimeNotInStock;
576
        return $this;
577
    }
578
579
    /**
580
     * @return null|string
581
     */
582
    public function getGiftCertificatePdfBackgroundImage(): ?string
583
    {
584
        return $this->giftCertificatePdfBackgroundImage;
585
    }
586
587
    /**
588
     * @param null|string $giftCertificatePdfBackgroundImage
589
     * @return ProductTranslation
590
     */
591
    public function setGiftCertificatePdfBackgroundImage(?string $giftCertificatePdfBackgroundImage)
592
    {
593
        $this->giftCertificatePdfBackgroundImage = $giftCertificatePdfBackgroundImage;
594
        return $this;
595
    }
596
597
    /**
598
     * @return bool|null
599
     */
600
    public function getHidden(): ?bool
601
    {
602
        return $this->hidden;
603
    }
604
605
    /**
606
     * @param bool|null $hidden
607
     * @return ProductTranslation
608
     */
609
    public function setHidden(?bool $hidden)
610
    {
611
        $this->hidden = $hidden;
612
        return $this;
613
    }
614
615
    /**
616
     * @return bool|null
617
     */
618
    public function getHiddenForMobile(): ?bool
619
    {
620
        return $this->hiddenForMobile;
621
    }
622
623
    /**
624
     * @param bool|null $hiddenForMobile
625
     * @return ProductTranslation
626
     */
627
    public function setHiddenForMobile(?bool $hiddenForMobile)
628
    {
629
        $this->hiddenForMobile = $hiddenForMobile;
630
        return $this;
631
    }
632
633
    /**
634
     * @return null|string
635
     */
636
    public function getImageAltText(): ?string
637
    {
638
        return $this->imageAltText;
639
    }
640
641
    /**
642
     * @param null|string $imageAltText
643
     * @return ProductTranslation
644
     */
645
    public function setImageAltText(?string $imageAltText)
646
    {
647
        $this->imageAltText = $imageAltText;
648
        return $this;
649
    }
650
651
    /**
652
     * @return bool|null
653
     */
654
    public function getisTopListHidden(): ?bool
655
    {
656
        return $this->isTopListHidden;
657
    }
658
659
    /**
660
     * @param bool|null $isTopListHidden
661
     * @return ProductTranslation
662
     */
663
    public function setIsTopListHidden(?bool $isTopListHidden)
664
    {
665
        $this->isTopListHidden = $isTopListHidden;
666
        return $this;
667
    }
668
669
    /**
670
     * @return null|string
671
     */
672
    public function getKeyWords(): ?string
673
    {
674
        return $this->keyWords;
675
    }
676
677
    /**
678
     * @param null|string $keyWords
679
     * @return ProductTranslation
680
     */
681
    public function setKeyWords(?string $keyWords)
682
    {
683
        $this->keyWords = $keyWords;
684
        return $this;
685
    }
686
687
    /**
688
     * @return null|string
689
     */
690
    public function getLongDescription(): ?string
691
    {
692
        return $this->longDescription;
693
    }
694
695
    /**
696
     * @param null|string $longDescription
697
     * @return ProductTranslation
698
     */
699
    public function setLongDescription(?string $longDescription)
700
    {
701
        $this->longDescription = $longDescription;
702
        return $this;
703
    }
704
705
    /**
706
     * @return null|string
707
     */
708
    public function getLongDescription2(): ?string
709
    {
710
        return $this->longDescription2;
711
    }
712
713
    /**
714
     * @param null|string $longDescription2
715
     * @return ProductTranslation
716
     */
717
    public function setLongDescription2(?string $longDescription2)
718
    {
719
        $this->longDescription2 = $longDescription2;
720
        return $this;
721
    }
722
723
    /**
724
     * @return null|string
725
     */
726
    public function getMetaDescription(): ?string
727
    {
728
        return $this->metaDescription;
729
    }
730
731
    /**
732
     * @param null|string $metaDescription
733
     * @return ProductTranslation
734
     */
735
    public function setMetaDescription(?string $metaDescription)
736
    {
737
        $this->metaDescription = $metaDescription;
738
        return $this;
739
    }
740
741
    /**
742
     * @return null|string
743
     */
744
    public function getName(): ?string
745
    {
746
        return $this->name;
747
    }
748
749
    /**
750
     * @param null|string $name
751
     * @return ProductTranslation
752
     */
753
    public function setName(?string $name)
754
    {
755
        $this->name = $name;
756
        return $this;
757
    }
758
759
    /**
760
     * @return null|string
761
     */
762
    public function getPageTitle(): ?string
763
    {
764
        return $this->pageTitle;
765
    }
766
767
    /**
768
     * @param null|string $pageTitle
769
     * @return ProductTranslation
770
     */
771
    public function setPageTitle(?string $pageTitle)
772
    {
773
        $this->pageTitle = $pageTitle;
774
        return $this;
775
    }
776
777
    /**
778
     * @return null|string
779
     */
780
    public function getRememberToBuyTextHeading(): ?string
781
    {
782
        return $this->rememberToBuyTextHeading;
783
    }
784
785
    /**
786
     * @param null|string $rememberToBuyTextHeading
787
     * @return ProductTranslation
788
     */
789
    public function setRememberToBuyTextHeading(?string $rememberToBuyTextHeading)
790
    {
791
        $this->rememberToBuyTextHeading = $rememberToBuyTextHeading;
792
        return $this;
793
    }
794
795
    /**
796
     * @return null|string
797
     */
798
    public function getRememberToBuyTextSubheading(): ?string
799
    {
800
        return $this->rememberToBuyTextSubheading;
801
    }
802
803
    /**
804
     * @param null|string $rememberToBuyTextSubheading
805
     * @return ProductTranslation
806
     */
807
    public function setRememberToBuyTextSubheading(?string $rememberToBuyTextSubheading)
808
    {
809
        $this->rememberToBuyTextSubheading = $rememberToBuyTextSubheading;
810
        return $this;
811
    }
812
813
    /**
814
     * @return float|null
815
     */
816
    public function getRetailSalesPrice(): ?float
817
    {
818
        return $this->retailSalesPrice;
819
    }
820
821
    /**
822
     * @param float|null $retailSalesPrice
823
     * @return ProductTranslation
824
     */
825
    public function setRetailSalesPrice(?float $retailSalesPrice)
826
    {
827
        $this->retailSalesPrice = $retailSalesPrice;
828
        return $this;
829
    }
830
831
    /**
832
     * @return null|string
833
     */
834
    public function getShortDescription(): ?string
835
    {
836
        return $this->shortDescription;
837
    }
838
839
    /**
840
     * @param null|string $shortDescription
841
     * @return ProductTranslation
842
     */
843
    public function setShortDescription(?string $shortDescription)
844
    {
845
        $this->shortDescription = $shortDescription;
846
        return $this;
847
    }
848
849
    /**
850
     * @return bool|null
851
     */
852
    public function getShowAsNew(): ?bool
853
    {
854
        return $this->showAsNew;
855
    }
856
857
    /**
858
     * @param bool|null $showAsNew
859
     * @return ProductTranslation
860
     */
861
    public function setShowAsNew(?bool $showAsNew)
862
    {
863
        $this->showAsNew = $showAsNew;
864
        return $this;
865
    }
866
867
    /**
868
     * @return bool|null
869
     */
870
    public function getShowOnFrontPage(): ?bool
871
    {
872
        return $this->showOnFrontPage;
873
    }
874
875
    /**
876
     * @param bool|null $showOnFrontPage
877
     * @return ProductTranslation
878
     */
879
    public function setShowOnFrontPage(?bool $showOnFrontPage)
880
    {
881
        $this->showOnFrontPage = $showOnFrontPage;
882
        return $this;
883
    }
884
885
    /**
886
     * @return int|null
887
     */
888
    public function getSiteId(): ?int
889
    {
890
        return $this->siteId;
891
    }
892
893
    /**
894
     * @param int|null $siteId
895
     * @return ProductTranslation
896
     */
897
    public function setSiteId(?int $siteId)
898
    {
899
        $this->siteId = $siteId;
900
        return $this;
901
    }
902
903
    /**
904
     * @return int|null
905
     */
906
    public function getSortOrder(): ?int
907
    {
908
        return $this->sortOrder;
909
    }
910
911
    /**
912
     * @param int|null $sortOrder
913
     * @return ProductTranslation
914
     */
915
    public function setSortOrder(?int $sortOrder)
916
    {
917
        $this->sortOrder = $sortOrder;
918
        return $this;
919
    }
920
921
    /**
922
     * @return null|string
923
     */
924
    public function getTechDocLink(): ?string
925
    {
926
        return $this->techDocLink;
927
    }
928
929
    /**
930
     * @param null|string $techDocLink
931
     * @return ProductTranslation
932
     */
933
    public function setTechDocLink(?string $techDocLink)
934
    {
935
        $this->techDocLink = $techDocLink;
936
        return $this;
937
    }
938
939
    /**
940
     * @return null|string
941
     */
942
    public function getTechDocLink2(): ?string
943
    {
944
        return $this->techDocLink2;
945
    }
946
947
    /**
948
     * @param null|string $techDocLink2
949
     * @return ProductTranslation
950
     */
951
    public function setTechDocLink2(?string $techDocLink2)
952
    {
953
        $this->techDocLink2 = $techDocLink2;
954
        return $this;
955
    }
956
957
    /**
958
     * @return null|string
959
     */
960
    public function getTechDocLink3(): ?string
961
    {
962
        return $this->techDocLink3;
963
    }
964
965
    /**
966
     * @param null|string $techDocLink3
967
     * @return ProductTranslation
968
     */
969
    public function setTechDocLink3(?string $techDocLink3)
970
    {
971
        $this->techDocLink3 = $techDocLink3;
972
        return $this;
973
    }
974
975
    /**
976
     * @return null|string
977
     */
978
    public function getUnitNumber(): ?string
979
    {
980
        return $this->unitNumber;
981
    }
982
983
    /**
984
     * @param null|string $unitNumber
985
     * @return ProductTranslation
986
     */
987
    public function setUnitNumber(?string $unitNumber)
988
    {
989
        $this->unitNumber = $unitNumber;
990
        return $this;
991
    }
992
993
    /**
994
     * @return null|string
995
     */
996
    public function getUrlName(): ?string
997
    {
998
        return $this->urlName;
999
    }
1000
1001
    /**
1002
     * @param null|string $urlName
1003
     * @return ProductTranslation
1004
     */
1005
    public function setUrlName(?string $urlName)
1006
    {
1007
        $this->urlName = $urlName;
1008
        return $this;
1009
    }
1010
}
1011