AddressNomenclatureType   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 24
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getNameEn() 0 3 1
A setName() 0 3 1
A setNameEn() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Service\Location\Country;
6
7
/**
8
 * Class AddressNomenclatureType.
9
 *
10
 * @author Vasil Dakov <[email protected]>
11
 * @copyright 2009-2022 Neutrino.bg
12
 *
13
 * @version 1.0
14
 */
15
class AddressNomenclatureType
16
{
17
    private ?string $name = null;
18
19
    private ?string $nameEn = null;
20
21 1
    public function setName(?string $name)
22
    {
23 1
        $this->name = $name;
24
    }
25
26 1
    public function getName(): ?string
27
    {
28 1
        return $this->name;
29
    }
30
31 1
    public function setNameEn(?string $nameEn)
32
    {
33 1
        $this->nameEn = $nameEn;
34
    }
35
36 1
    public function getNameEn(): ?string
37
    {
38 1
        return $this->nameEn;
39
    }
40
}
41