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

SectionTranslation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 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\Resource\Model\AbstractTranslation;
16
17
/**
18
 * @author Patryk Drapik <[email protected]>
19
 */
20
class SectionTranslation extends AbstractTranslation implements SectionTranslationInterface
21
{
22
    /**
23
     * @var int
24
     */
25
    protected $id;
26
27
    /**
28
     * @var null|string
29
     */
30
    protected $name;
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getId(): ?int
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getName(): ?string
44
    {
45
        return $this->name;
46
    }
47
48
    /**
49
     * {@inheritdoc}
50
     */
51
    public function setName(?string $name): void
52
    {
53
        $this->name = $name;
54
    }
55
}
56