MediaTranslation   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 60
rs 10
c 0
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setContent() 0 3 1
A getLink() 0 3 1
A setLink() 0 3 1
A getContent() 0 3 1
A getName() 0 3 1
A getId() 0 3 1
A setName() 0 3 1
A getAlt() 0 3 1
A setAlt() 0 3 1
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusCmsPlugin\Entity;
12
13
use Sylius\Component\Resource\Model\AbstractTranslation;
14
15
class MediaTranslation extends AbstractTranslation implements MediaTranslationInterface
16
{
17
    /** @var int */
18
    protected $id;
19
20
    /** @var string|null */
21
    protected $name;
22
23
    /** @var string|null */
24
    protected $content;
25
26
    /** @var string|null */
27
    protected $alt;
28
29
    /** @var string|null */
30
    protected $link;
31
32
    public function getId(): ?int
33
    {
34
        return $this->id;
35
    }
36
37
    public function getName(): ?string
38
    {
39
        return $this->name;
40
    }
41
42
    public function setName(?string $name): void
43
    {
44
        $this->name = $name;
45
    }
46
47
    public function getContent(): ?string
48
    {
49
        return $this->content;
50
    }
51
52
    public function setContent(?string $content): void
53
    {
54
        $this->content = $content;
55
    }
56
57
    public function getAlt(): ?string
58
    {
59
        return $this->alt;
60
    }
61
62
    public function setAlt(?string $alt): void
63
    {
64
        $this->alt = $alt;
65
    }
66
67
    public function getLink(): ?string
68
    {
69
        return $this->link;
70
    }
71
72
    public function setLink(?string $link): void
73
    {
74
        $this->link = $link;
75
    }
76
}
77