1 | <?php |
||
10 | trait MetatagTrait |
||
11 | { |
||
12 | /** |
||
13 | * @var TranslationString $metaTitle |
||
14 | */ |
||
15 | private $metaTitle; |
||
16 | /** |
||
17 | * @var TranslationString $metaDescription |
||
18 | */ |
||
19 | private $metaDescription; |
||
20 | /** |
||
21 | * @var TranslationString $metaImage |
||
22 | */ |
||
23 | private $metaImage; |
||
24 | /** |
||
25 | * @var TranslationString $metaAuthor |
||
26 | */ |
||
27 | private $metaAuthor; |
||
28 | |||
29 | /** |
||
30 | * @var string $facebookAppId |
||
31 | */ |
||
32 | private $facebookAppId; |
||
33 | |||
34 | /** |
||
35 | * @var TranslationString $opengraphTitle |
||
36 | */ |
||
37 | private $opengraphTitle; |
||
38 | |||
39 | /** |
||
40 | * @var TranslationString $siteName |
||
41 | */ |
||
42 | private $opengraphSiteName; |
||
43 | private $opengraphDescription; |
||
44 | private $opengraphType; |
||
45 | private $opengraphImage; |
||
46 | private $opengraphAuthor; |
||
47 | private $opengraphPublisher; |
||
48 | |||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | abstract public function canonicalUrl(); |
||
54 | |||
55 | /** |
||
56 | * @param mixed $title |
||
57 | * @return MetatagInterface Chainable |
||
58 | */ |
||
59 | public function setMetaTitle($title) |
||
64 | |||
65 | /** |
||
66 | * @return TranslationString |
||
67 | */ |
||
68 | public function metaTitle() |
||
72 | |||
73 | /** |
||
74 | * @param mixed $description |
||
75 | * @return MetatagInterface Chainable |
||
76 | */ |
||
77 | public function setMetaDescription($description) |
||
82 | |||
83 | /** |
||
84 | * @return TranslationString |
||
85 | */ |
||
86 | public function metaDescription() |
||
90 | |||
91 | /** |
||
92 | * @param mixed $image |
||
93 | * @return MetatagInterface Chainable |
||
94 | */ |
||
95 | public function setMetaImage($image) |
||
100 | |||
101 | /** |
||
102 | * @return TranslationString |
||
103 | */ |
||
104 | public function metaImage() |
||
108 | |||
109 | /** |
||
110 | * @param mixed $author |
||
111 | * @return MetatagInterface Chainable |
||
112 | */ |
||
113 | public function setMetaAuthor($author) |
||
118 | |||
119 | /** |
||
120 | * @return TranslationString |
||
121 | */ |
||
122 | public function metaAuthor() |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function metaTags() |
||
135 | |||
136 | /** |
||
137 | * @param string $appId The facebook App ID (numeric string) |
||
138 | * @return MetatagInterface Chainable |
||
139 | */ |
||
140 | public function setFacebookAppId($appId) |
||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public function facebookAppId() |
||
153 | |||
154 | /** |
||
155 | * @param mixed $title |
||
156 | * @return MetatagInterface Chainable |
||
157 | */ |
||
158 | public function setOpengraphTitle($title) |
||
163 | |||
164 | /** |
||
165 | * @return TranslationString |
||
166 | */ |
||
167 | public function opengraphTitle() |
||
171 | |||
172 | /** |
||
173 | * @param mixed $siteName |
||
174 | * @return MetatagInterface Chainable |
||
175 | */ |
||
176 | public function setOpengraphSiteName($siteName) |
||
181 | |||
182 | /** |
||
183 | * @return TranslationString |
||
184 | */ |
||
185 | public function opengraphSiteName() |
||
189 | |||
190 | /** |
||
191 | * @param mixed $description |
||
192 | * @return MetatagInterface Chainable |
||
193 | */ |
||
194 | public function setOpengraphDescription($description) |
||
198 | |||
199 | /** |
||
200 | * @return TranslationString |
||
201 | */ |
||
202 | public function opengraphDescription() |
||
206 | |||
207 | public function setOpengraphType($type) |
||
212 | |||
213 | public function opengraphType() |
||
217 | |||
218 | public function setOpengraphImage($image) |
||
223 | |||
224 | public function opengraphImage() |
||
228 | |||
229 | public function setOpengraphAuthor($author) |
||
234 | |||
235 | public function opengraphAuthor() |
||
239 | |||
240 | public function setOpengraphPulisher($publisher) |
||
245 | |||
246 | public function opengraphPublisher() |
||
250 | |||
251 | /** |
||
252 | * @return string |
||
253 | */ |
||
254 | public function opengraphTags() |
||
258 | } |
||
259 |