Completed
Push — master ( 718bf1...6aec97 )
by Derek Stephen
01:41
created

Country::setCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace Del\Entity;
4
5
6
class Country
7
{
8
    /** @var string */
9
    private $id = '';
10
11
    /** @var  string */
12
    private $iso = '';
13
14
    /** @var string */
15
    private $name = '';
16
17
    /** @var  string */
18
    private $num_code = '';
19
20
    /** @var  string */
21
    private $flag = '';
22
23
24
    /**
25
     * @return string
26
     */
27 1
    public function getId(): string
28
    {
29 1
        return $this->id;
30
    }
31
32
    /**
33
     * @param string $id
34
     */
35 3
    public function setId(string $id): void
36
    {
37 3
        $this->id = $id;
38 3
    }
39
40
    /**
41
     * @return string
42
     */
43 1
    public function getIso(): string
44
    {
45 1
        return $this->iso;
46
    }
47
48
    /**
49
     * @param string $iso
50
     */
51 3
    public function setIso(string $iso): void
52
    {
53 3
        $this->iso = $iso;
54 3
    }
55
56
    /**
57
     * @return string
58
     */
59 1
    public function getName(): string
60
    {
61 1
        return $this->name;
62
    }
63
64
    /**
65
     * @param $name
66
     */
67 3
    public function setName(string $name)
68
    {
69 3
        $this->name = $name;
70 3
    }
71
72
    /**
73
     * @return string
74
     */
75 1
    public function getNumCode(): string
76
    {
77 1
        return $this->num_code;
78
    }
79
80
    /**
81
     * @param string $num_code
82
     */
83 3
    public function setNumCode(string $num_code): void
84
    {
85 3
        $this->num_code = $num_code;
86 3
    }
87
88
    /**
89
     * @return string
90
     */
91 1
    public function getFlag():string
92
    {
93 1
        return $this->flag;
94
    }
95
96
    /**
97
     * @param string $flag
98
     */
99 3
    public function setFlag(string $flag):void
100
    {
101 3
        $this->flag = $flag;
102 3
    }
103
}
104