Completed
Pull Request — master (#273)
by Youri
01:44
created

PageTranslation::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * another great project.
7
 * You can find more information about us on https://bitbag.shop and write us
8
 * an email on [email protected].
9
 */
10
11
declare(strict_types=1);
12
13
namespace BitBag\SyliusCmsPlugin\Entity;
14
15
use Sylius\Component\Resource\Model\AbstractTranslation;
16
17
class PageTranslation extends AbstractTranslation implements PageTranslationInterface
18
{
19
    /** @var int */
20
    protected $id;
21
22
    /** @var string */
23
    protected $slug;
24
25
    /** @var PageImageInterface */
26
    protected $image;
27
28
    /** @var string */
29
    protected $name;
30
31
    /** @var string */
32
    protected $content;
33
34
    /** @var string */
35
    protected $metaKeywords;
36
37
    /** @var string */
38
    protected $metaDescription;
39
40
    /** @var string */
41
    protected $nameWhenLinked;
42
43
    /** @var string */
44
    protected $descriptionWhenLinked;
45
46
    /** @var string */
47
    protected $breadcrumb;
48
49
    /** @var string */
50
    protected $title;
51
52
    public function getId(): ?int
53
    {
54
        return $this->id;
55
    }
56
57
    public function getContent(): ?string
58
    {
59
        return $this->content;
60
    }
61
62
    public function setContent(?string $content): void
63
    {
64
        $this->content = $content;
65
    }
66
67
    public function getSlug(): ?string
68
    {
69
        return $this->slug;
70
    }
71
72
    public function setSlug(?string $slug): void
73
    {
74
        $this->slug = $slug;
75
    }
76
77
    public function getImage(): ?PageImageInterface
78
    {
79
        return $this->image;
80
    }
81
82
    public function setImage(?PageImageInterface $image): void
83
    {
84
        if ($image !== null) {
85
            $image->setOwner($this);
86
        }
87
88
        $this->image = $image;
89
    }
90
91
    public function getName(): ?string
92
    {
93
        return $this->name;
94
    }
95
96
    public function setName(?string $name): void
97
    {
98
        $this->name = $name;
99
    }
100
101
    public function getBreadcrumb(): ?string
102
    {
103
        return $this->breadcrumb;
104
    }
105
106
    public function setBreadcrumb(?string $breadcrumb): void
107
    {
108
        $this->breadcrumb = $breadcrumb;
109
    }
110
111
    public function getNameWhenLinked(): ?string
112
    {
113
        return $this->nameWhenLinked;
114
    }
115
116
    public function setNameWhenLinked(?string $nameWhenLinked): void
117
    {
118
        $this->nameWhenLinked = $nameWhenLinked;
119
    }
120
121
    public function getDescriptionWhenLinked(): ?string
122
    {
123
        return $this->descriptionWhenLinked;
124
    }
125
126
    public function setDescriptionWhenLinked(?string $descriptionWhenLinked): void
127
    {
128
        $this->descriptionWhenLinked = $descriptionWhenLinked;
129
    }
130
131
    public function getMetaKeywords(): ?string
132
    {
133
        return $this->metaKeywords;
134
    }
135
136
    public function setMetaKeywords(?string $metaKeywords): void
137
    {
138
        $this->metaKeywords = $metaKeywords;
139
    }
140
141
    public function getMetaDescription(): ?string
142
    {
143
        return $this->metaDescription;
144
    }
145
146
    public function setMetaDescription(?string $metaDescription): void
147
    {
148
        $this->metaDescription = $metaDescription;
149
    }
150
151
    public function getTitle(): ?string
152
    {
153
        return $this->title;
154
    }
155
156
    public function setTitle(?string $title): void
157
    {
158
        $this->title = $title;
159
    }
160
}
161