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

BlockTranslation::setContent()   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\SyliusCmsPlugin\Entity;
14
15
use Sylius\Component\Core\Model\ImageInterface;
16
use Sylius\Component\Resource\Model\AbstractTranslation;
17
18
/**
19
 * @author Patryk Drapik <[email protected]>
20
 */
21
class BlockTranslation extends AbstractTranslation implements BlockTranslationInterface
22
{
23
    /**
24
     * @var int
25
     */
26
    protected $id;
27
28
    /**
29
     * @var null|string
30
     */
31
    protected $name = null;
32
33
    /**
34
     * @var null|string
35
     */
36
    protected $content;
37
38
    /**
39
     * @var null|ImageInterface
40
     */
41
    protected $image;
42
43
    /**
44
     * @var null|string
45
     */
46
    protected $link;
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function getName(): ?string
52
    {
53
        return $this->name;
54
    }
55
56
    /**
57
     * {@inheritdoc}
58
     */
59
    public function setName(?string $name): void
60
    {
61
        $this->name = $name;
62
    }
63
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function getContent(): ?string
68
    {
69
        return $this->content;
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function setContent(?string $content): void
76
    {
77
        $this->content = $content;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function getId(): ?int
84
    {
85
        return $this->id;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function getImage(): ?ImageInterface
92
    {
93
        return $this->image;
94
    }
95
96
    /**
97
     * {@inheritdoc}
98
     */
99
    public function setImage(?ImageInterface $image): void
100
    {
101
        $image->setOwner($this);
102
103
        $this->image = $image;
104
    }
105
106
    /**
107
     * {@inheritdoc}
108
     */
109
    public function getLink(): ?string
110
    {
111
        return $this->link;
112
    }
113
114
    /**
115
     * {@inheritdoc}
116
     */
117
    public function setLink(?string $link): void
118
    {
119
        $this->link = $link;
120
    }
121
}
122