Completed
Pull Request — master (#95)
by
unknown
01:39
created

PageTranslation::getContent()   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 0
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\SyliusCmsPlugin\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
     * {@inheritdoc}
55
     */
56
    public function getId(): ?int
57
    {
58
        return $this->id;
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function getContent(): ?string
65
    {
66
        return $this->content;
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    public function setContent(?string $content): void
73
    {
74
        $this->content = $content;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function getSlug(): ?string
81
    {
82
        return $this->slug;
83
    }
84
85
    /**
86
     * {@inheritdoc}
87
     */
88
    public function setSlug(?string $slug): void
89
    {
90
        $this->slug = $slug;
91
    }
92
93
    /**
94
     * {@inheritdoc}
95
     */
96
    public function getName(): ?string
97
    {
98
        return $this->name;
99
    }
100
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public function setName(?string $name): void
105
    {
106
        $this->name = $name;
107
    }
108
109
    /**
110
     * {@inheritdoc}
111
     */
112
    public function getMetaKeywords(): ?string
113
    {
114
        return $this->metaKeywords;
115
    }
116
117
    /**
118
     * {@inheritdoc}
119
     */
120
    public function setMetaKeywords(?string $metaKeywords): void
121
    {
122
        $this->metaKeywords = $metaKeywords;
123
    }
124
125
    /**
126
     * {@inheritdoc}
127
     */
128
    public function getMetaDescription(): ?string
129
    {
130
        return $this->metaDescription;
131
    }
132
133
    /**
134
     * {@inheritdoc}
135
     */
136
    public function setMetaDescription(?string $metaDescription): void
137
    {
138
        $this->metaDescription = $metaDescription;
139
    }
140
}
141