Completed
Pull Request — master (#177)
by Mikołaj
38:01
created

MediaTranslation::getAlt()   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 0
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
    public function getId(): ?int
32
    {
33
        return $this->id;
34
    }
35
36
    public function getName(): ?string
37
    {
38
        return $this->name;
39
    }
40
41
    public function setName(?string $name): void
42
    {
43
        $this->name = $name;
44
    }
45
46
    public function getContent(): ?string
47
    {
48
        return $this->content;
49
    }
50
51
    public function setContent(?string $content): void
52
    {
53
        $this->content = $content;
54
    }
55
56
    public function getAlt(): ?string
57
    {
58
        return $this->alt;
59
    }
60
61
    public function setAlt(?string $alt): void
62
    {
63
        $this->alt = $alt;
64
    }
65
}
66