CategoryTranslation   A
last analyzed

Complexity

Total Complexity 32

Size/Duplication

Total Lines 435
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 67
c 2
b 0
f 0
dl 0
loc 435
ccs 0
cts 215
cp 0
rs 9.84
wmc 32

32 Methods

Rating   Name   Duplication   Size   Complexity  
A getSortOrder() 0 3 1
A getUrlName() 0 3 1
A getDescription() 0 3 1
A setString() 0 5 1
A setSiteId() 0 5 1
A getTitle() 0 3 1
A getIcon() 0 3 1
A getLink() 0 3 1
A setCategoryNumber() 0 5 1
A getExternalId() 0 3 1
A getName() 0 3 1
A getSiteId() 0 3 1
A getMetaDescription() 0 3 1
A getKeywords() 0 3 1
A setLink() 0 5 1
A getImage() 0 3 1
A setHiddenMobile() 0 5 1
A getString() 0 3 1
A getHiddenMobile() 0 3 1
A setName() 0 5 1
A setSortOrder() 0 5 1
A setUrlName() 0 5 1
A setKeywords() 0 5 1
A getCategoryNumber() 0 3 1
A getHidden() 0 3 1
A setTitle() 0 5 1
A setIcon() 0 5 1
A setDescription() 0 5 1
A setMetaDescription() 0 5 1
A setHidden() 0 5 1
A setExternalId() 0 5 1
A setImage() 0 5 1
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;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...oryTranslationInterface was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Loevgaard\DandomainFoundation\Entity\Generated\CategoryTranslationTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...ategoryTranslationTrait was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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", length=191)
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", length=191)
58
     */
59
    protected $icon;
60
61
    /**
62
     * @var string|null
63
     *
64
     * @ORM\Column(nullable=true, type="string", length=191)
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", length=191)
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", length=191)
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", length=191)
114
     */
115
    protected $string;
116
117
    /**
118
     * @var string|null
119
     *
120
     * @ORM\Column(nullable=true, type="string", length=191)
121
     */
122
    protected $title;
123
124
    /**
125
     * @var string|null
126
     *
127
     * @ORM\Column(nullable=true, type="string", length=191)
128
     */
129
    protected $urlName;
130
131
    /**
132
     * @return int
133
     */
134
    public function getExternalId(): int
135
    {
136
        return (int) $this->externalId;
137
    }
138
139
    /**
140
     * @param int $externalId
141
     *
142
     * @return CategoryTranslationInterface
143
     */
144
    public function setExternalId(int $externalId)
145
    {
146
        $this->externalId = $externalId;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return null|string
153
     */
154
    public function getCategoryNumber(): ?string
155
    {
156
        return $this->categoryNumber;
157
    }
158
159
    /**
160
     * @param null|string $categoryNumber
161
     *
162
     * @return CategoryTranslationInterface
163
     */
164
    public function setCategoryNumber(?string $categoryNumber)
165
    {
166
        $this->categoryNumber = $categoryNumber;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return null|string
173
     */
174
    public function getDescription(): ?string
175
    {
176
        return $this->description;
177
    }
178
179
    /**
180
     * @param null|string $description
181
     *
182
     * @return CategoryTranslationInterface
183
     */
184
    public function setDescription(?string $description)
185
    {
186
        $this->description = $description;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return bool|null
193
     */
194
    public function getHidden(): ?bool
195
    {
196
        return $this->hidden;
197
    }
198
199
    /**
200
     * @param bool|null $hidden
201
     *
202
     * @return CategoryTranslationInterface
203
     */
204
    public function setHidden(?bool $hidden)
205
    {
206
        $this->hidden = $hidden;
207
208
        return $this;
209
    }
210
211
    /**
212
     * @return bool|null
213
     */
214
    public function getHiddenMobile(): ?bool
215
    {
216
        return $this->hiddenMobile;
217
    }
218
219
    /**
220
     * @param bool|null $hiddenMobile
221
     *
222
     * @return CategoryTranslationInterface
223
     */
224
    public function setHiddenMobile(?bool $hiddenMobile)
225
    {
226
        $this->hiddenMobile = $hiddenMobile;
227
228
        return $this;
229
    }
230
231
    /**
232
     * @return null|string
233
     */
234
    public function getIcon(): ?string
235
    {
236
        return $this->icon;
237
    }
238
239
    /**
240
     * @param null|string $icon
241
     *
242
     * @return CategoryTranslationInterface
243
     */
244
    public function setIcon(?string $icon)
245
    {
246
        $this->icon = $icon;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @return null|string
253
     */
254
    public function getImage(): ?string
255
    {
256
        return $this->image;
257
    }
258
259
    /**
260
     * @param null|string $image
261
     *
262
     * @return CategoryTranslationInterface
263
     */
264
    public function setImage(?string $image)
265
    {
266
        $this->image = $image;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @return null|string
273
     */
274
    public function getKeywords(): ?string
275
    {
276
        return $this->keywords;
277
    }
278
279
    /**
280
     * @param null|string $keywords
281
     *
282
     * @return CategoryTranslationInterface
283
     */
284
    public function setKeywords(?string $keywords)
285
    {
286
        $this->keywords = $keywords;
287
288
        return $this;
289
    }
290
291
    /**
292
     * @return null|string
293
     */
294
    public function getLink(): ?string
295
    {
296
        return $this->link;
297
    }
298
299
    /**
300
     * @param null|string $link
301
     *
302
     * @return CategoryTranslationInterface
303
     */
304
    public function setLink(?string $link)
305
    {
306
        $this->link = $link;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @return null|string
313
     */
314
    public function getMetaDescription(): ?string
315
    {
316
        return $this->metaDescription;
317
    }
318
319
    /**
320
     * @param null|string $metaDescription
321
     *
322
     * @return CategoryTranslationInterface
323
     */
324
    public function setMetaDescription(?string $metaDescription)
325
    {
326
        $this->metaDescription = $metaDescription;
327
328
        return $this;
329
    }
330
331
    /**
332
     * @return null|string
333
     */
334
    public function getName(): ?string
335
    {
336
        return $this->name;
337
    }
338
339
    /**
340
     * @param null|string $name
341
     *
342
     * @return CategoryTranslationInterface
343
     */
344
    public function setName(?string $name)
345
    {
346
        $this->name = $name;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @return int|null
353
     */
354
    public function getSiteId(): ?int
355
    {
356
        return $this->siteId;
357
    }
358
359
    /**
360
     * @param int|null $siteId
361
     *
362
     * @return CategoryTranslationInterface
363
     */
364
    public function setSiteId(?int $siteId)
365
    {
366
        $this->siteId = $siteId;
367
368
        return $this;
369
    }
370
371
    /**
372
     * @return int|null
373
     */
374
    public function getSortOrder(): ?int
375
    {
376
        return $this->sortOrder;
377
    }
378
379
    /**
380
     * @param int|null $sortOrder
381
     *
382
     * @return CategoryTranslationInterface
383
     */
384
    public function setSortOrder(?int $sortOrder)
385
    {
386
        $this->sortOrder = $sortOrder;
387
388
        return $this;
389
    }
390
391
    /**
392
     * @return null|string
393
     */
394
    public function getString(): ?string
395
    {
396
        return $this->string;
397
    }
398
399
    /**
400
     * @param null|string $string
401
     *
402
     * @return CategoryTranslationInterface
403
     */
404
    public function setString(?string $string)
405
    {
406
        $this->string = $string;
407
408
        return $this;
409
    }
410
411
    /**
412
     * @return null|string
413
     */
414
    public function getTitle(): ?string
415
    {
416
        return $this->title;
417
    }
418
419
    /**
420
     * @param null|string $title
421
     *
422
     * @return CategoryTranslationInterface
423
     */
424
    public function setTitle(?string $title)
425
    {
426
        $this->title = $title;
427
428
        return $this;
429
    }
430
431
    /**
432
     * @return null|string
433
     */
434
    public function getUrlName(): ?string
435
    {
436
        return $this->urlName;
437
    }
438
439
    /**
440
     * @param null|string $urlName
441
     *
442
     * @return CategoryTranslationInterface
443
     */
444
    public function setUrlName(?string $urlName)
445
    {
446
        $this->urlName = $urlName;
447
448
        return $this;
449
    }
450
}
451