Address   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 220
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 20
eloc 41
dl 0
loc 220
c 0
b 0
f 0
rs 10

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getPostalCode() 0 3 1
A getState() 0 3 1
A getStateCode() 0 3 1
A getCity() 0 3 1
A getLongitude() 0 3 1
A getLatitude() 0 3 1
A getStreet() 0 3 1
A getGeocodeAccuracy() 0 3 1
A getCountryCode() 0 3 1
A getCountry() 0 3 1
A setLatitude() 0 5 1
A setGeocodeAccuracy() 0 5 1
A setCountry() 0 5 1
A setStreet() 0 5 1
A setCountryCode() 0 5 1
A setLongitude() 0 5 1
A setPostalCode() 0 5 1
A setStateCode() 0 5 1
A setCity() 0 5 1
A setState() 0 5 1
1
<?php
2
3
namespace Xsolve\SalesforceClient\Model\ValueObject;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
class Address
8
{
9
    /**
10
     * @var string|null
11
     * @JMS\Type("string")
12
     * @JMS\SerializedName("city")
13
     */
14
    protected $city;
15
16
    /**
17
     * @var string|null
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("country")
20
     */
21
    protected $country;
22
23
    /**
24
     * @var string|null
25
     * @JMS\Type("string")
26
     * @JMS\SerializedName("countryCode")
27
     */
28
    protected $countryCode;
29
30
    /**
31
     * @var string|null
32
     * @JMS\Type("string")
33
     * @JMS\SerializedName("geocodeAccuracy")
34
     */
35
    protected $geocodeAccuracy;
36
37
    /**
38
     * @var float|null
39
     * @JMS\Type("float")
40
     * @JMS\SerializedName("latitude")
41
     */
42
    protected $latitude;
43
44
    /**
45
     * @var float|null
46
     * @JMS\Type("float")
47
     * @JMS\SerializedName("longitude")
48
     */
49
    protected $longitude;
50
51
    /**
52
     * @var string|null
53
     * @JMS\Type("string")
54
     * @JMS\SerializedName("postalCode")
55
     */
56
    protected $postalCode;
57
58
    /**
59
     * @var string|null
60
     * @JMS\Type("string")
61
     * @JMS\SerializedName("state")
62
     */
63
    protected $state;
64
65
    /**
66
     * @var string|null
67
     * @JMS\Type("string")
68
     * @JMS\SerializedName("stateCode")
69
     */
70
    protected $stateCode;
71
72
    /**
73
     * @var string|null
74
     * @JMS\Type("string")
75
     * @JMS\SerializedName("street")
76
     */
77
    protected $street;
78
79
    /**
80
     * @return string|null
81
     */
82
    public function getCity()
83
    {
84
        return $this->city;
85
    }
86
87
    /**
88
     * @return string|null
89
     */
90
    public function getCountry()
91
    {
92
        return $this->country;
93
    }
94
95
    /**
96
     * @return string|null
97
     */
98
    public function getCountryCode()
99
    {
100
        return $this->countryCode;
101
    }
102
103
    /**
104
     * @return string|null
105
     */
106
    public function getGeocodeAccuracy()
107
    {
108
        return $this->geocodeAccuracy;
109
    }
110
111
    /**
112
     * @return float|null
113
     */
114
    public function getLatitude()
115
    {
116
        return $this->latitude;
117
    }
118
119
    /**
120
     * @return float|null
121
     */
122
    public function getLongitude()
123
    {
124
        return $this->longitude;
125
    }
126
127
    /**
128
     * @return string|null
129
     */
130
    public function getPostalCode()
131
    {
132
        return $this->postalCode;
133
    }
134
135
    /**
136
     * @return string|null
137
     */
138
    public function getState()
139
    {
140
        return $this->state;
141
    }
142
143
    /**
144
     * @return string|null
145
     */
146
    public function getStateCode()
147
    {
148
        return $this->stateCode;
149
    }
150
151
    /**
152
     * @return string|null
153
     */
154
    public function getStreet()
155
    {
156
        return $this->street;
157
    }
158
159
    public function setCity(string $city = null): self
160
    {
161
        $this->city = $city;
162
163
        return $this;
164
    }
165
166
    public function setCountry(string $country = null): self
167
    {
168
        $this->country = $country;
169
170
        return $this;
171
    }
172
173
    public function setCountryCode(string $countryCode = null): self
174
    {
175
        $this->countryCode = $countryCode;
176
177
        return $this;
178
    }
179
180
    public function setGeocodeAccuracy(string $geocodeAccuracy = null): self
181
    {
182
        $this->geocodeAccuracy = $geocodeAccuracy;
183
184
        return $this;
185
    }
186
187
    public function setLatitude(float $latitude = null): self
188
    {
189
        $this->latitude = $latitude;
190
191
        return $this;
192
    }
193
194
    public function setLongitude(float $longitude = null): self
195
    {
196
        $this->longitude = $longitude;
197
198
        return $this;
199
    }
200
201
    public function setPostalCode(string $postalCode = null): self
202
    {
203
        $this->postalCode = $postalCode;
204
205
        return $this;
206
    }
207
208
    public function setState(string $state = null): self
209
    {
210
        $this->state = $state;
211
212
        return $this;
213
    }
214
215
    public function setStateCode(string $stateCode = null): self
216
    {
217
        $this->stateCode = $stateCode;
218
219
        return $this;
220
    }
221
222
    public function setStreet(string $street = null): self
223
    {
224
        $this->street = $street;
225
226
        return $this;
227
    }
228
}
229