Place::setIcon()   A
last analyzed

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