Locale   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 1
b 0
f 0
dl 0
loc 32
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A getLocale() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Seams-CMS Delivery SDK package.
7
 *
8
 * (c) Seams-CMS.com
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace SeamsCMS\Delivery\Model;
15
16
/**
17
 * Class Locale
18
 * @package SeamsCMS\Delivery\Model
19
 */
20
class Locale
21
{
22
    use HydratorTrait;
23
24
    /** @var string */
25
    protected $name = "";
26
    /** @var string */
27
    protected $locale = "";
28
29
30
    /**
31
     * Locale constructor.
32
     *
33
     */
34 2
    final protected function __construct()
35
    {
36 2
    }
37
38
    /**
39
     * @return string
40
     */
41 1
    public function getName(): string
42
    {
43 1
        return $this->name;
44
    }
45
46
    /**
47
     * @return string
48
     */
49 1
    public function getLocale(): string
50
    {
51 1
        return $this->locale;
52
    }
53
}
54