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