PageTranslation   A
last analyzed

Complexity

Total Complexity 21

Size/Duplication

Total Lines 138
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 33
c 1
b 0
f 0
dl 0
loc 138
rs 10
wmc 21

21 Methods

Rating   Name   Duplication   Size   Complexity  
A setImage() 0 3 1
A setTitle() 0 3 1
A getContent() 0 3 1
A getId() 0 3 1
A getMetaDescription() 0 3 1
A setBreadcrumb() 0 3 1
A getMetaKeywords() 0 3 1
A setMetaKeywords() 0 3 1
A getImage() 0 3 1
A getName() 0 3 1
A getNameWhenLinked() 0 3 1
A getTitle() 0 3 1
A getBreadcrumb() 0 3 1
A getDescriptionWhenLinked() 0 3 1
A setSlug() 0 3 1
A setMetaDescription() 0 3 1
A setNameWhenLinked() 0 3 1
A setDescriptionWhenLinked() 0 3 1
A getSlug() 0 3 1
A setContent() 0 3 1
A setName() 0 3 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusCmsPlugin\Entity;
12
13
use Sylius\Component\Resource\Model\AbstractTranslation;
14
15
class PageTranslation extends AbstractTranslation implements PageTranslationInterface
16
{
17
    /** @var int */
18
    protected $id;
19
20
    /** @var string|null */
21
    protected $slug;
22
23
    /** @var MediaInterface|null */
24
    protected $image;
25
26
    /** @var string|null */
27
    protected $name;
28
29
    /** @var string|null */
30
    protected $content;
31
32
    /** @var string|null */
33
    protected $metaKeywords;
34
35
    /** @var string|null */
36
    protected $metaDescription;
37
38
    /** @var string|null */
39
    protected $nameWhenLinked;
40
41
    /** @var string|null */
42
    protected $descriptionWhenLinked;
43
44
    /** @var string|null */
45
    protected $breadcrumb;
46
47
    /** @var string|null */
48
    protected $title;
49
50
    public function getId(): ?int
51
    {
52
        return $this->id;
53
    }
54
55
    public function getContent(): ?string
56
    {
57
        return $this->content;
58
    }
59
60
    public function setContent(?string $content): void
61
    {
62
        $this->content = $content;
63
    }
64
65
    public function getSlug(): ?string
66
    {
67
        return $this->slug;
68
    }
69
70
    public function setSlug(?string $slug): void
71
    {
72
        $this->slug = $slug;
73
    }
74
75
    public function getImage(): ?MediaInterface
76
    {
77
        return $this->image;
78
    }
79
80
    public function setImage(?MediaInterface $image): void
81
    {
82
        $this->image = $image;
83
    }
84
85
    public function getName(): ?string
86
    {
87
        return $this->name;
88
    }
89
90
    public function setName(?string $name): void
91
    {
92
        $this->name = $name;
93
    }
94
95
    public function getBreadcrumb(): ?string
96
    {
97
        return $this->breadcrumb;
98
    }
99
100
    public function setBreadcrumb(?string $breadcrumb): void
101
    {
102
        $this->breadcrumb = $breadcrumb;
103
    }
104
105
    public function getNameWhenLinked(): ?string
106
    {
107
        return $this->nameWhenLinked;
108
    }
109
110
    public function setNameWhenLinked(?string $nameWhenLinked): void
111
    {
112
        $this->nameWhenLinked = $nameWhenLinked;
113
    }
114
115
    public function getDescriptionWhenLinked(): ?string
116
    {
117
        return $this->descriptionWhenLinked;
118
    }
119
120
    public function setDescriptionWhenLinked(?string $descriptionWhenLinked): void
121
    {
122
        $this->descriptionWhenLinked = $descriptionWhenLinked;
123
    }
124
125
    public function getMetaKeywords(): ?string
126
    {
127
        return $this->metaKeywords;
128
    }
129
130
    public function setMetaKeywords(?string $metaKeywords): void
131
    {
132
        $this->metaKeywords = $metaKeywords;
133
    }
134
135
    public function getMetaDescription(): ?string
136
    {
137
        return $this->metaDescription;
138
    }
139
140
    public function setMetaDescription(?string $metaDescription): void
141
    {
142
        $this->metaDescription = $metaDescription;
143
    }
144
145
    public function getTitle(): ?string
146
    {
147
        return $this->title;
148
    }
149
150
    public function setTitle(?string $title): void
151
    {
152
        $this->title = $title;
153
    }
154
}
155