GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#1)
by Cees van
07:49
created

Address::getMunicipality()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
* (c) Wessel Strengholt <[email protected]>
4
*
5
* For the full copyright and license information, please view the LICENSE
6
* file that was distributed with this source code.
7
*/
8
9
namespace Usoft\PostcodeBundle\Model;
10
11
/**
12
 * Class Address
13
 *
14
 * @author Wessel Strengholt <[email protected]>
15
 */
16
class Address
17
{
18
    /** @var string */
19
    private $street;
20
21
    /** @var string */
22
    private $zipcode;
23
24
    /** @var string */
25
    private $city;
26
27
    /** @var integer */
28
    private $number;
29
30
    /** @var string */
31
    private $province;
32
33
    /** @var array */
34
    private $geoLocation;
35
36
    /** @var string */
37
    private $municipality;
38
39
    /**
40
     * @param string  $street
41
     * @param string  $zipcode
42
     * @param string  $city
43
     * @param integer $number
44
     * @param string  $province
45
     * @param string  $municipality
46
     */
47
    public function __construct($street, $zipcode, $city, $number, $province, $municipality)
48
    {
49
        $this->street   = $street;
50
        $this->zipcode  = $zipcode;
51
        $this->city     = $city;
52
        $this->number   = $number;
53
        $this->province = $province;
54
        $this->municipality = $municipality;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getStreet()
61
    {
62
        return $this->street;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getZipcode()
69
    {
70
        return $this->zipcode;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getCity()
77
    {
78
        return $this->city;
79
    }
80
81
    /**
82
     * @return integer
83
     */
84
    public function getNumber()
85
    {
86
        return $this->number;
87
    }
88
89
    /**
90
     * @return string
91
     */
92
    public function getMunicipality()
93
    {
94
        return $this->municipality;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getProvince()
101
    {
102
        return $this->province;
103
    }
104
105
    /**
106
     * @return array
107
     */
108
    public function getGeoLocation()
109
    {
110
        return $this->geoLocation;
111
    }
112
113
    /**
114
     * @param array $geoLocation
115
     */
116
    public function setGeoLocation($geoLocation)
117
    {
118
        $this->geoLocation = $geoLocation;
119
    }
120
121
    /**
122
     * @return array
123
     */
124
    public function toArray()
125
    {
126
        return [
127
            'street'        => $this->getStreet(),
128
            'zipcode'       => $this->getZipcode(),
129
            'city'          => $this->getCity(),
130
            'house_number'  => $this->getNumber(),
131
            'province'      => $this->getProvince(),
132
            'municipality'  => $this->getMunicipality(),
133
            'geo_location'  => $this->getGeoLocation(),
134
        ];
135
    }
136
}
137