Completed
Pull Request — master (#73)
by Mikołaj
16:15
created

PageTranslation::setSlug()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file was created by the 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\CmsPlugin\Entity;
14
15
use Sylius\Component\Resource\Model\AbstractTranslation;
16
17
/**
18
 * @author Mikołaj Król <[email protected]>
19
 * @author Patryk Drapik <[email protected]>
20
 */
21
class PageTranslation extends AbstractTranslation implements PageTranslationInterface
22
{
23
    /**
24
     * @var int
25
     */
26
    protected $id;
27
28
    /**
29
     * @var null|string
30
     */
31
    protected $slug;
32
33
    /**
34
     * @var null|string
35
     */
36
    protected $name;
37
38
    /**
39
     * @var null|string
40
     */
41
    protected $content;
42
43
    /**
44
     * @var null|string
45
     */
46
    protected $metaKeywords;
47
48
    /**
49
     * @var null|string
50
     */
51
    protected $metaDescription;
52
53
    /**
54
     * @var null|string
55
     */
56
    protected $link;
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function getId(): int
62
    {
63
        return $this->id;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function getContent(): ?string
70
    {
71
        return $this->content;
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     */
77
    public function setContent(?string $content): void
78
    {
79
        $this->content = $content;
80
    }
81
82
    /**
83
     * {@inheritdoc}
84
     */
85
    public function getSlug(): ?string
86
    {
87
        return $this->slug;
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function setSlug(?string $slug): void
94
    {
95
        $this->slug = $slug;
96
    }
97
98
    /**
99
     * {@inheritdoc}
100
     */
101
    public function getName(): ?string
102
    {
103
        return $this->name;
104
    }
105
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public function setName(?string $name): void
110
    {
111
        $this->name = $name;
112
    }
113
114
    /**
115
     * {@inheritdoc}
116
     */
117
    public function getMetaKeywords(): ?string
118
    {
119
        return $this->metaKeywords;
120
    }
121
122
    /**
123
     * {@inheritdoc}
124
     */
125
    public function setMetaKeywords(?string $metaKeywords): void
126
    {
127
        $this->metaKeywords = $metaKeywords;
128
    }
129
130
    /**
131
     * {@inheritdoc}
132
     */
133
    public function getMetaDescription(): ?string
134
    {
135
        return $this->metaDescription;
136
    }
137
138
    /**
139
     * {@inheritdoc}
140
     */
141
    public function setMetaDescription(?string $metaDescription): void
142
    {
143
        $this->metaDescription = $metaDescription;
144
    }
145
}
146