Completed
Push — master ( 93bbfd...32f969 )
by Arthur
02:17
created

Place::setTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Arthem\GoogleApi\Domain\Place;
4
5
use Arthem\GoogleApi\Domain\Place\VO\AddressComponentCollection;
6
use Arthem\GoogleApi\Domain\Place\VO\FormattedAddress;
7
use Arthem\GoogleApi\Domain\Place\VO\FormattedPhoneNumber;
8
use Arthem\GoogleApi\Domain\Place\VO\Icon;
9
use Arthem\GoogleApi\Domain\Place\VO\InternationalPhoneNumber;
10
use Arthem\GoogleApi\Domain\Place\VO\Location;
11
use Arthem\GoogleApi\Domain\Place\VO\PlaceId;
12
use Arthem\GoogleApi\Domain\Place\VO\PlaceName;
13
use Arthem\GoogleApi\Domain\Place\VO\TypeCollection;
14
use Arthem\GoogleApi\Domain\Place\VO\Url;
15
use Arthem\GoogleApi\Domain\Place\VO\Vicinity;
16
use Arthem\GoogleApi\Domain\Place\VO\Website;
17
18
class Place
19
{
20
    /**
21
     * @var PlaceId
22
     */
23
    private $id;
24
25
    /**
26
     * @var PlaceName
27
     */
28
    private $name;
29
30
    /**
31
     * @var Vicinity
32
     */
33
    private $vicinity;
34
35
    /**
36
     * @var FormattedAddress
37
     */
38
    private $formattedAddress;
39
40
    /**
41
     * @var FormattedPhoneNumber
42
     */
43
    private $formattedPhoneNumber;
44
45
    /**
46
     * @var Icon
47
     */
48
    private $icon;
49
50
    /**
51
     * @var InternationalPhoneNumber
52
     */
53
    private $internationalPhoneNumber;
54
55
    /**
56
     * @var Website
57
     */
58
    private $website;
59
60
    /**
61
     * @var Url
62
     */
63
    private $url;
64
65
    /**
66
     * @var Location
67
     */
68
    private $location;
69
70
    /**
71
     * @var TypeCollection
72
     */
73
    private $types;
74
75
    /**
76
     * @var AddressComponentCollection
77
     */
78
    private $addressComponents;
79
80
    public function __construct()
81
    {
82
        $this->types = new TypeCollection();
83
        $this->addressComponents = new AddressComponentCollection();
84
    }
85
86
    /**
87
     * @return PlaceId
88
     */
89
    public function getId()
90
    {
91
        return $this->id;
92
    }
93
94
    /**
95
     * @param PlaceId $id
96
     *
97
     * @return $this
98
     */
99
    public function setId(PlaceId $id)
100
    {
101
        $this->id = $id;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return PlaceName
108
     */
109
    public function getName()
110
    {
111
        return $this->name;
112
    }
113
114
    /**
115
     * @param PlaceName $name
116
     *
117
     * @return $this
118
     */
119
    public function setName(PlaceName $name)
120
    {
121
        $this->name = $name;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return Vicinity
128
     */
129
    public function getVicinity()
130
    {
131
        return $this->vicinity;
132
    }
133
134
    /**
135
     * @param Vicinity $vicinity
136
     *
137
     * @return $this
138
     */
139
    public function setVicinity(Vicinity $vicinity = null)
140
    {
141
        $this->vicinity = $vicinity;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return Location
148
     */
149
    public function getLocation()
150
    {
151
        return $this->location;
152
    }
153
154
    /**
155
     * @param Location $location
156
     *
157
     * @return $this
158
     */
159
    public function setLocation(Location $location = null)
160
    {
161
        $this->location = $location;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return TypeCollection
168
     */
169
    public function getTypes()
170
    {
171
        return $this->types;
172
    }
173
174
    /**
175
     * @param TypeCollection $types
176
     *
177
     * @return $this
178
     */
179
    public function setTypes(TypeCollection $types)
180
    {
181
        $this->types = $types;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return FormattedAddress
188
     */
189
    public function getFormattedAddress()
190
    {
191
        return $this->formattedAddress;
192
    }
193
194
    /**
195
     * @param FormattedAddress $formattedAddress
196
     *
197
     * @return $this
198
     */
199
    public function setFormattedAddress(FormattedAddress $formattedAddress = null)
200
    {
201
        $this->formattedAddress = $formattedAddress;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return FormattedPhoneNumber
208
     */
209
    public function getFormattedPhoneNumber()
210
    {
211
        return $this->formattedPhoneNumber;
212
    }
213
214
    /**
215
     * @param FormattedPhoneNumber $formattedPhoneNumber
216
     *
217
     * @return $this
218
     */
219
    public function setFormattedPhoneNumber(FormattedPhoneNumber $formattedPhoneNumber = null)
220
    {
221
        $this->formattedPhoneNumber = $formattedPhoneNumber;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return Icon
228
     */
229
    public function getIcon()
230
    {
231
        return $this->icon;
232
    }
233
234
    /**
235
     * @param Icon $icon
236
     *
237
     * @return $this
238
     */
239
    public function setIcon(Icon $icon = null)
240
    {
241
        $this->icon = $icon;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @return InternationalPhoneNumber
248
     */
249
    public function getInternationalPhoneNumber()
250
    {
251
        return $this->internationalPhoneNumber;
252
    }
253
254
    /**
255
     * @param InternationalPhoneNumber $internationalPhoneNumber
256
     *
257
     * @return $this
258
     */
259
    public function setInternationalPhoneNumber(InternationalPhoneNumber $internationalPhoneNumber = null)
260
    {
261
        $this->internationalPhoneNumber = $internationalPhoneNumber;
262
263
        return $this;
264
    }
265
266
    /**
267
     * @return Website
268
     */
269
    public function getWebsite()
270
    {
271
        return $this->website;
272
    }
273
274
    /**
275
     * @param Website $website
276
     *
277
     * @return $this
278
     */
279
    public function setWebsite(Website $website = null)
280
    {
281
        $this->website = $website;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @return Url
288
     */
289
    public function getUrl()
290
    {
291
        return $this->url;
292
    }
293
294
    /**
295
     * @param Url $url
296
     *
297
     * @return $this
298
     */
299
    public function setUrl(Url $url = null)
300
    {
301
        $this->url = $url;
302
303
        return $this;
304
    }
305
306
    /**
307
     * @return AddressComponentCollection
308
     */
309
    public function getAddressComponents()
310
    {
311
        return $this->addressComponents;
312
    }
313
314
    /**
315
     * @param AddressComponentCollection $addressComponents
316
     *
317
     * @return $this
318
     */
319
    public function setAddressComponents(AddressComponentCollection $addressComponents)
320
    {
321
        $this->addressComponents = $addressComponents;
322
323
        return $this;
324
    }
325
}
326