Prefecture::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace JpPrefecture;
4
5
/**
6
 * Class Prefecture
7
 * @package JpPrefecture
8
 */
9
class Prefecture implements PrefectureInterface
10
{
11
    /**
12
     * @var int
13
     */
14
    protected $code;
15
16
    /**
17
     * @var string
18
     */
19
    protected $name;
20
21
    /**
22
     * Prefecture constructor.
23
     * @param $code
24
     * @param $name
25
     */
26
    public function __construct($code, $name)
27
    {
28
        $this->code = $code;
29
        $this->name = $name;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getCode()
36
    {
37
        return $this->code;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getName()
44
    {
45
        return $this->name;
46
    }
47
}