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\CategoryTranslationInterface; |
|
|
|
|
8
|
|
|
use Loevgaard\DandomainFoundation\Entity\Generated\CategoryTranslationTrait; |
|
|
|
|
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @ORM\Entity() |
12
|
|
|
* @ORM\Table(name="ldf_category_translations") |
13
|
|
|
*/ |
14
|
|
|
class CategoryTranslation extends AbstractEntity implements CategoryTranslationInterface |
15
|
|
|
{ |
16
|
|
|
use CategoryTranslationTrait; |
17
|
|
|
use Translation; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
* |
22
|
|
|
* @ORM\Column(type="integer", unique=true) |
23
|
|
|
*/ |
24
|
|
|
protected $externalId; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
* |
29
|
|
|
* @ORM\Column(nullable=true, type="string") |
30
|
|
|
*/ |
31
|
|
|
protected $categoryNumber; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string|null |
35
|
|
|
* |
36
|
|
|
* @ORM\Column(nullable=true, type="text") |
37
|
|
|
*/ |
38
|
|
|
protected $description; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var bool|null |
42
|
|
|
* |
43
|
|
|
* @ORM\Column(nullable=true, type="boolean") |
44
|
|
|
*/ |
45
|
|
|
protected $hidden; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var bool|null |
49
|
|
|
* |
50
|
|
|
* @ORM\Column(nullable=true, type="boolean") |
51
|
|
|
*/ |
52
|
|
|
protected $hiddenMobile; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
* |
57
|
|
|
* @ORM\Column(nullable=true, type="string") |
58
|
|
|
*/ |
59
|
|
|
protected $icon; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var string|null |
63
|
|
|
* |
64
|
|
|
* @ORM\Column(nullable=true, type="string") |
65
|
|
|
*/ |
66
|
|
|
protected $image; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var string|null |
70
|
|
|
* |
71
|
|
|
* @ORM\Column(nullable=true, type="text") |
72
|
|
|
*/ |
73
|
|
|
protected $keywords; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string|null |
77
|
|
|
* |
78
|
|
|
* @ORM\Column(nullable=true, type="string") |
79
|
|
|
*/ |
80
|
|
|
protected $link; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var string|null |
84
|
|
|
* |
85
|
|
|
* @ORM\Column(nullable=true, type="text") |
86
|
|
|
*/ |
87
|
|
|
protected $metaDescription; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var string|null |
91
|
|
|
* |
92
|
|
|
* @ORM\Column(nullable=true, type="string") |
93
|
|
|
*/ |
94
|
|
|
protected $name; |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @var int|null |
98
|
|
|
* |
99
|
|
|
* @ORM\Column(nullable=true, type="integer") |
100
|
|
|
*/ |
101
|
|
|
protected $siteId; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @var int|null |
105
|
|
|
* |
106
|
|
|
* @ORM\Column(nullable=true, type="integer") |
107
|
|
|
*/ |
108
|
|
|
protected $sortOrder; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @var string|null |
112
|
|
|
* |
113
|
|
|
* @ORM\Column(nullable=true, type="string") |
114
|
|
|
*/ |
115
|
|
|
protected $string; |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @var string|null |
119
|
|
|
* |
120
|
|
|
* @ORM\Column(nullable=true, type="string") |
121
|
|
|
*/ |
122
|
|
|
protected $title; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @var string|null |
126
|
|
|
* |
127
|
|
|
* @ORM\Column(nullable=true, type="string") |
128
|
|
|
*/ |
129
|
|
|
protected $urlName; |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @return int |
133
|
|
|
*/ |
134
|
|
|
public function getExternalId(): int |
135
|
|
|
{ |
136
|
|
|
return $this->externalId; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @param int $externalId |
141
|
|
|
* @return CategoryTranslation |
142
|
|
|
*/ |
143
|
|
|
public function setExternalId(int $externalId) |
144
|
|
|
{ |
145
|
|
|
$this->externalId = $externalId; |
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return null|string |
151
|
|
|
*/ |
152
|
|
|
public function getCategoryNumber(): ?string |
153
|
|
|
{ |
154
|
|
|
return $this->categoryNumber; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param null|string $categoryNumber |
159
|
|
|
* @return CategoryTranslation |
160
|
|
|
*/ |
161
|
|
|
public function setCategoryNumber(?string $categoryNumber) |
162
|
|
|
{ |
163
|
|
|
$this->categoryNumber = $categoryNumber; |
164
|
|
|
return $this; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @return null|string |
169
|
|
|
*/ |
170
|
|
|
public function getDescription(): ?string |
171
|
|
|
{ |
172
|
|
|
return $this->description; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @param null|string $description |
177
|
|
|
* @return CategoryTranslation |
178
|
|
|
*/ |
179
|
|
|
public function setDescription(?string $description) |
180
|
|
|
{ |
181
|
|
|
$this->description = $description; |
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return bool|null |
187
|
|
|
*/ |
188
|
|
|
public function getHidden(): ?bool |
189
|
|
|
{ |
190
|
|
|
return $this->hidden; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param bool|null $hidden |
195
|
|
|
* @return CategoryTranslation |
196
|
|
|
*/ |
197
|
|
|
public function setHidden(?bool $hidden) |
198
|
|
|
{ |
199
|
|
|
$this->hidden = $hidden; |
200
|
|
|
return $this; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return bool|null |
205
|
|
|
*/ |
206
|
|
|
public function getHiddenMobile(): ?bool |
207
|
|
|
{ |
208
|
|
|
return $this->hiddenMobile; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @param bool|null $hiddenMobile |
213
|
|
|
* @return CategoryTranslation |
214
|
|
|
*/ |
215
|
|
|
public function setHiddenMobile(?bool $hiddenMobile) |
216
|
|
|
{ |
217
|
|
|
$this->hiddenMobile = $hiddenMobile; |
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @return null|string |
223
|
|
|
*/ |
224
|
|
|
public function getIcon(): ?string |
225
|
|
|
{ |
226
|
|
|
return $this->icon; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @param null|string $icon |
231
|
|
|
* @return CategoryTranslation |
232
|
|
|
*/ |
233
|
|
|
public function setIcon(?string $icon) |
234
|
|
|
{ |
235
|
|
|
$this->icon = $icon; |
236
|
|
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @return null|string |
241
|
|
|
*/ |
242
|
|
|
public function getImage(): ?string |
243
|
|
|
{ |
244
|
|
|
return $this->image; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @param null|string $image |
249
|
|
|
* @return CategoryTranslation |
250
|
|
|
*/ |
251
|
|
|
public function setImage(?string $image) |
252
|
|
|
{ |
253
|
|
|
$this->image = $image; |
254
|
|
|
return $this; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @return null|string |
259
|
|
|
*/ |
260
|
|
|
public function getKeywords(): ?string |
261
|
|
|
{ |
262
|
|
|
return $this->keywords; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @param null|string $keywords |
267
|
|
|
* @return CategoryTranslation |
268
|
|
|
*/ |
269
|
|
|
public function setKeywords(?string $keywords) |
270
|
|
|
{ |
271
|
|
|
$this->keywords = $keywords; |
272
|
|
|
return $this; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @return null|string |
277
|
|
|
*/ |
278
|
|
|
public function getLink(): ?string |
279
|
|
|
{ |
280
|
|
|
return $this->link; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @param null|string $link |
285
|
|
|
* @return CategoryTranslation |
286
|
|
|
*/ |
287
|
|
|
public function setLink(?string $link) |
288
|
|
|
{ |
289
|
|
|
$this->link = $link; |
290
|
|
|
return $this; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @return null|string |
295
|
|
|
*/ |
296
|
|
|
public function getMetaDescription(): ?string |
297
|
|
|
{ |
298
|
|
|
return $this->metaDescription; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @param null|string $metaDescription |
303
|
|
|
* @return CategoryTranslation |
304
|
|
|
*/ |
305
|
|
|
public function setMetaDescription(?string $metaDescription) |
306
|
|
|
{ |
307
|
|
|
$this->metaDescription = $metaDescription; |
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* @return null|string |
313
|
|
|
*/ |
314
|
|
|
public function getName(): ?string |
315
|
|
|
{ |
316
|
|
|
return $this->name; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @param null|string $name |
321
|
|
|
* @return CategoryTranslation |
322
|
|
|
*/ |
323
|
|
|
public function setName(?string $name) |
324
|
|
|
{ |
325
|
|
|
$this->name = $name; |
326
|
|
|
return $this; |
327
|
|
|
} |
328
|
|
|
|
329
|
|
|
/** |
330
|
|
|
* @return int|null |
331
|
|
|
*/ |
332
|
|
|
public function getSiteId(): ?int |
333
|
|
|
{ |
334
|
|
|
return $this->siteId; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* @param int|null $siteId |
339
|
|
|
* @return CategoryTranslation |
340
|
|
|
*/ |
341
|
|
|
public function setSiteId(?int $siteId) |
342
|
|
|
{ |
343
|
|
|
$this->siteId = $siteId; |
344
|
|
|
return $this; |
345
|
|
|
} |
346
|
|
|
|
347
|
|
|
/** |
348
|
|
|
* @return int|null |
349
|
|
|
*/ |
350
|
|
|
public function getSortOrder(): ?int |
351
|
|
|
{ |
352
|
|
|
return $this->sortOrder; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @param int|null $sortOrder |
357
|
|
|
* @return CategoryTranslation |
358
|
|
|
*/ |
359
|
|
|
public function setSortOrder(?int $sortOrder) |
360
|
|
|
{ |
361
|
|
|
$this->sortOrder = $sortOrder; |
362
|
|
|
return $this; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* @return null|string |
367
|
|
|
*/ |
368
|
|
|
public function getString(): ?string |
369
|
|
|
{ |
370
|
|
|
return $this->string; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @param null|string $string |
375
|
|
|
* @return CategoryTranslation |
376
|
|
|
*/ |
377
|
|
|
public function setString(?string $string) |
378
|
|
|
{ |
379
|
|
|
$this->string = $string; |
380
|
|
|
return $this; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* @return null|string |
385
|
|
|
*/ |
386
|
|
|
public function getTitle(): ?string |
387
|
|
|
{ |
388
|
|
|
return $this->title; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* @param null|string $title |
393
|
|
|
* @return CategoryTranslation |
394
|
|
|
*/ |
395
|
|
|
public function setTitle(?string $title) |
396
|
|
|
{ |
397
|
|
|
$this->title = $title; |
398
|
|
|
return $this; |
399
|
|
|
} |
400
|
|
|
|
401
|
|
|
/** |
402
|
|
|
* @return null|string |
403
|
|
|
*/ |
404
|
|
|
public function getUrlName(): ?string |
405
|
|
|
{ |
406
|
|
|
return $this->urlName; |
407
|
|
|
} |
408
|
|
|
|
409
|
|
|
/** |
410
|
|
|
* @param null|string $urlName |
411
|
|
|
* @return CategoryTranslation |
412
|
|
|
*/ |
413
|
|
|
public function setUrlName(?string $urlName) |
414
|
|
|
{ |
415
|
|
|
$this->urlName = $urlName; |
416
|
|
|
return $this; |
417
|
|
|
} |
418
|
|
|
} |
419
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths