Completed
Pull Request — master (#9)
by
unknown
09:21
created

ProductSeoTranslation   A

Complexity

Total Complexity 18

Size/Duplication

Total Lines 135
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 28
c 2
b 0
f 0
dl 0
loc 135
rs 10
wmc 18

18 Methods

Rating   Name   Duplication   Size   Complexity  
A setOgDescription() 0 3 1
A getId() 0 3 1
A getTwitterTitle() 0 3 1
A getExtraTags() 0 3 1
A getPageTitle() 0 3 1
A getOgTitle() 0 3 1
A setImage() 0 3 1
A getTwitterSite() 0 3 1
A setId() 0 3 1
A setOgTitle() 0 3 1
A setTwitterDescription() 0 3 1
A setPageTitle() 0 3 1
A getOgDescription() 0 3 1
A setTwitterSite() 0 3 1
A setTwitterTitle() 0 3 1
A getImage() 0 3 1
A setExtraTags() 0 3 1
A getTwitterDescription() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JoppeDc\SyliusBetterSeoPlugin\Entity;
6
7
use Sylius\Component\Core\Model\ImageAwareInterface;
8
use Sylius\Component\Core\Model\ImageInterface;
9
use Sylius\Component\Resource\Model\AbstractTranslation;
10
use Sylius\Component\Resource\Model\ResourceInterface;
11
12
class ProductSeoTranslation extends AbstractTranslation implements ResourceInterface, ImageAwareInterface
13
{
14
    /**
15
     * @var int|null
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string|null
21
     */
22
    private $pageTitle;
23
24
    /**
25
     * @var string|null
26
     */
27
    private $ogTitle;
28
29
    /**
30
     * @var string|null
31
     */
32
    private $ogDescription;
33
34
    /**
35
     * @var string|null
36
     */
37
    private $twitterTitle;
38
39
    /**
40
     * @var string|null
41
     */
42
    private $twitterDescription;
43
44
    /**
45
     * @var string|null
46
     */
47
    private $twitterSite;
48
49
    /**
50
     * @var string|null
51
     */
52
    private $extraTags;
53
54
    /**
55
     * @var ImageInterface
56
     */
57
    private $image;
58
59
    public function getId(): ?int
60
    {
61
        return $this->id;
62
    }
63
64
    public function setId(?int $id): void
65
    {
66
        $this->id = $id;
67
    }
68
69
    public function getPageTitle(): ?string
70
    {
71
        return $this->pageTitle;
72
    }
73
74
    public function setPageTitle(?string $pageTitle): void
75
    {
76
        $this->pageTitle = $pageTitle;
77
    }
78
79
    public function getOgTitle(): ?string
80
    {
81
        return $this->ogTitle;
82
    }
83
84
    public function setOgTitle(?string $ogTitle): void
85
    {
86
        $this->ogTitle = $ogTitle;
87
    }
88
89
    public function getOgDescription(): ?string
90
    {
91
        return $this->ogDescription;
92
    }
93
94
    public function setOgDescription(?string $ogDescription): void
95
    {
96
        $this->ogDescription = $ogDescription;
97
    }
98
99
    public function getTwitterTitle(): ?string
100
    {
101
        return $this->twitterTitle;
102
    }
103
104
    public function setTwitterTitle(?string $twitterTitle): void
105
    {
106
        $this->twitterTitle = $twitterTitle;
107
    }
108
109
    public function getTwitterDescription(): ?string
110
    {
111
        return $this->twitterDescription;
112
    }
113
114
    public function setTwitterDescription(?string $twitterDescription): void
115
    {
116
        $this->twitterDescription = $twitterDescription;
117
    }
118
119
    public function getTwitterSite(): ?string
120
    {
121
        return $this->twitterSite;
122
    }
123
124
    public function setTwitterSite(?string $twitterSite): void
125
    {
126
        $this->twitterSite = $twitterSite;
127
    }
128
129
    public function getExtraTags(): ?string
130
    {
131
        return $this->extraTags;
132
    }
133
134
    public function setExtraTags(?string $extraTags): void
135
    {
136
        $this->extraTags = $extraTags;
137
    }
138
139
    public function getImage(): ?ImageInterface
140
    {
141
        return $this->image;
142
    }
143
144
    public function setImage(?ImageInterface $image): void
145
    {
146
        $this->image = $image;
147
    }
148
}
149