Completed
Push — master ( 332b6b...04c252 )
by Mikołaj
04:17 queued 02:04
created

MediaTranslation   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 62
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getContent() 0 4 1
A setContent() 0 4 1
A getAlt() 0 4 1
A setAlt() 0 4 1
A getLink() 0 4 1
A setLink() 0 4 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