AddressComponent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getKind() 0 3 1
A getName() 0 3 1
A __construct() 0 4 1
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
}