AddressComponent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
4
namespace talismanfr\geocode\entity;
5
6
7
final class AddressComponent
8
{
9
    private $kind;
10
    private $name;
11
12
    /**
13
     * AddressComponent constructor.
14
     * @param $kind
15
     * @param $name
16
     */
17
    public function __construct($kind, $name)
18
    {
19
        $this->kind = $kind;
20
        $this->name = $name;
21
    }
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getKind()
27
    {
28
        return $this->kind;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getName()
35
    {
36
        return $this->name;
37
    }
38
39
40
}