TranslationValue::setLocaleCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Locastic\SymfonyTranslationBundle\Model;
6
7
class TranslationValue implements TranslationValueInterface
8
{
9
    private ?string $localeCode = null;
10
11
    private ?string $value = null;
12
13
    private ?string $theme = null;
14
15
    private ?TranslationInterface $translation = null;
16
17
    public function getLocaleCode(): ?string
18
    {
19
        return $this->localeCode;
20
    }
21
22
    public function setLocaleCode(?string $localeCode): void
23
    {
24
        $this->localeCode = $localeCode;
25
    }
26
27
    public function getValue(): ?string
28
    {
29
        return $this->value;
30
    }
31
32
    public function setValue(?string $value): void
33
    {
34
        $this->value = $value;
35
    }
36
37
    public function getTheme(): ?string
38
    {
39
        return $this->theme;
40
    }
41
42
    public function setTheme(?string $theme): void
43
    {
44
        $this->theme = $theme;
45
    }
46
47
    public function getTranslation(): ?TranslationInterface
48
    {
49
        return $this->translation;
50
    }
51
52
    public function setTranslation(?TranslationInterface $translation): void
53
    {
54
        $this->translation = $translation;
55
    }
56
}
57