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.

NominatimAddress::getOSMId()   A
last analyzed

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
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Provider\Nominatim\Model;
14
15
use Geocoder\Model\Address;
16
17
/**
18
 * @author Jonathan Beliën <[email protected]>
19
 */
20
final class NominatimAddress extends Address
21
{
22
    /**
23
     * @var string|null
24
     */
25
    private $attribution;
26
27
    /**
28
     * @var string|null
29
     */
30
    private $class;
31
32
    /**
33
     * @var string|null
34
     */
35
    private $displayName;
36
37
    /**
38
     * @var string|null
39
     */
40
    private $osmType;
41
42
    /**
43
     * @var int|null
44
     */
45
    private $osmId;
46
47
    /**
48
     * @var string|null
49
     */
50
    private $type;
51
52
    /**
53
     * @return null|string
54
     */
55
    public function getAttribution()
56
    {
57
        return $this->attribution;
58
    }
59
60
    /**
61
     * @param null|string $attribution
62
     *
63
     * @return NominatimAddress
64
     */
65
    public function withAttribution(string $attribution = null): self
66
    {
67
        $new = clone $this;
68
        $new->attribution = $attribution;
69
70
        return $new;
71
    }
72
73
    /**
74
     * @return null|string
75
     */
76
    public function getClass()
77
    {
78
        return $this->class;
79
    }
80
81
    /**
82
     * @param null|string $class
83
     *
84
     * @return NominatimAddress
85
     */
86
    public function withClass(string $class = null): self
87
    {
88
        $new = clone $this;
89
        $new->class = $class;
90
91
        return $new;
92
    }
93
94
    /**
95
     * @return null|string
96
     */
97
    public function getDisplayName()
98
    {
99
        return $this->displayName;
100
    }
101
102
    /**
103
     * @param null|string $displayName
104
     *
105
     * @return NominatimAddress
106
     */
107
    public function withDisplayName(string $displayName = null): self
108
    {
109
        $new = clone $this;
110
        $new->displayName = $displayName;
111
112
        return $new;
113
    }
114
115
    /**
116
     * @return null|int
117
     */
118
    public function getOSMId()
119
    {
120
        return $this->osmId;
121
    }
122
123
    /**
124
     * @param null|int $osmId
125
     *
126
     * @return NominatimAddress
127
     */
128
    public function withOSMId(int $osmId = null): self
129
    {
130
        $new = clone $this;
131
        $new->osmId = $osmId;
132
133
        return $new;
134
    }
135
136
    /**
137
     * @return null|string
138
     */
139
    public function getOSMType()
140
    {
141
        return $this->osmType;
142
    }
143
144
    /**
145
     * @param null|string $osmType
146
     *
147
     * @return NominatimAddress
148
     */
149
    public function withOSMType(string $osmType = null): self
150
    {
151
        $new = clone $this;
152
        $new->osmType = $osmType;
153
154
        return $new;
155
    }
156
157
    /**
158
     * @return null|string
159
     */
160
    public function getType()
161
    {
162
        return $this->type;
163
    }
164
165
    /**
166
     * @param null|string $type
167
     *
168
     * @return NominatimAddress
169
     */
170
    public function withType(string $type = null): self
171
    {
172
        $new = clone $this;
173
        $new->type = $type;
174
175
        return $new;
176
    }
177
}
178