Language   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 52
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A isRtl() 0 3 1
A __construct() 0 5 1
A getName() 0 3 1
A getIso() 0 3 1
1
<?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved
2
namespace Magneds\Lokalise\Language\Entity;
3
4
class Language
5
{
6
    /**
7
     * @var string
8
     */
9
    protected $iso;
10
11
    /**
12
     * @var string
13
     */
14
    protected $name;
15
16
    /**
17
     * @var boolean
18
     */
19
    protected $rtl;
20
21
    /**
22
     * Language constructor.
23
     * @param string $iso
24
     * @param string $name
25
     * @param bool $rtl
26
     */
27
    public function __construct(string $iso, string $name, bool $rtl)
28
    {
29
        $this->iso  = $iso;
30
        $this->name = $name;
31
        $this->rtl  = $rtl;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getIso(): string
38
    {
39
        return $this->iso;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getName()
46
    {
47
        return $this->name;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53
    public function isRtl()
54
    {
55
        return $this->rtl;
56
    }
57
}
58