Geo::getAddress()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace talismanfr\geocode\entity;
5
6
7
final class Geo
8
{
9
    /** @var Address */
10
    private $address;
11
12
    /** @var AddressDetails */
13
    private $address_details;
14
15
    /** @var Point */
16
    private $point;
17
18
    private $name;
19
20
    private $description;
21
22
    private $kind;
23
24
    private $text;
25
26
    public function __construct(Address $address, AddressDetails $address_details, Point $point,
27
        $name, $description, $kind, $text)
28
    {
29
        $this->address=$address;
30
        $this->address_details=$address_details;
31
        $this->point=$point;
32
        $this->name=$name;
33
        $this->description=$description;
34
        $this->kind=$kind;
35
        $this->text=$text;
36
    }
37
38
    /**
39
     * @return Address
40
     */
41
    public function getAddress(): Address
42
    {
43
        return $this->address;
44
    }
45
46
    /**
47
     * @return AddressDetails
48
     */
49
    public function getAddressDetails(): AddressDetails
50
    {
51
        return $this->address_details;
52
    }
53
54
    /**
55
     * @return Point
56
     */
57
    public function getPoint(): Point
58
    {
59
        return $this->point;
60
    }
61
62
    /**
63
     * @return mixed
64
     */
65
    public function getName()
66
    {
67
        return $this->name;
68
    }
69
70
    /**
71
     * @return mixed
72
     */
73
    public function getDescription()
74
    {
75
        return $this->description;
76
    }
77
78
    /**
79
     * @return mixed
80
     */
81
    public function getKind()
82
    {
83
        return $this->kind;
84
    }
85
86
    /**
87
     * @return mixed
88
     */
89
    public function getText()
90
    {
91
        return $this->text;
92
    }
93
94
95
96
97
}