Completed
Pull Request — master (#211)
by Mikołaj
02:02
created

MediaTranslation::setLink()   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 MediaTranslation extends AbstractTranslation implements MediaTranslationInterface
18
{
19
    /** @var int */
20
    protected $id;
21
22
    /** @var string */
23
    protected $name;
24
25
    /** @var string */
26
    protected $content;
27
28
    /** @var string */
29
    protected $alt;
30
31
    /** @var string */
32
    protected $link;
33
34
    public function getId(): ?int
35
    {
36
        return $this->id;
37
    }
38
39
    public function getName(): ?string
40
    {
41
        return $this->name;
42
    }
43
44
    public function setName(?string $name): void
45
    {
46
        $this->name = $name;
47
    }
48
49
    public function getContent(): ?string
50
    {
51
        return $this->content;
52
    }
53
54
    public function setContent(?string $content): void
55
    {
56
        $this->content = $content;
57
    }
58
59
    public function getAlt(): ?string
60
    {
61
        return $this->alt;
62
    }
63
64
    public function setAlt(?string $alt): void
65
    {
66
        $this->alt = $alt;
67
    }
68
69
    public function getLink(): ?string
70
    {
71
        return $this->link;
72
    }
73
74
    public function setLink(?string $link): void
75
    {
76
        $this->link = $link;
77
    }
78
}
79