Completed
Push — master ( 3e4745...008931 )
by Basil
06:21 queued 03:42
created

PlaceTrait::getOpeningHoursSpecification()   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
namespace luya\web\jsonld;
4
5
/**
6
 * JsonLd - Place trait
7
 *
8
 * @see http://schema.org/Event
9
 *
10
 * @author Alex Schmid
11
 * @since 1.0.0
12
 */
13
trait PlaceTrait
14
{
15
    /**
16
     * A property-value pair representing an additional characteristics of the entitity,
17
     * e.g. a product feature or another characteristic for which there is no matching property in schema.org.
18
     * Note: Publishers should be aware that applications designed to use specific schema.org properties
19
     * (e.g. http://schema.org/width, http://schema.org/color, http://schema.org/gtin13, ...) will typically expect
20
     * such data to be provided using those properties, rather than using the generic
21
     *
22
     * @var PropertyValue
23
     */
24
    private $_additionalProperty;
25
26
    /**
27
     * @return PropertyValue
28
     */
29
    public function getAdditionalProperty()
30
    {
31
        return $this->_additionalProperty;
32
    }
33
34
    /**
35
     * @param PropertyValue $additionalProperty
36
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
37
     */
38
    public function setAdditionalProperty($additionalProperty)
39
    {
40
        $this->_additionalProperty = $additionalProperty;
41
        return $this;
42
    }
43
44
    /**
45
     * Physical address of the item.
46
     *
47
     * @var PostalAddress|string
48
     */
49
    private $_address;
50
51
    /**
52
     * @return PostalAddress|string
53
     */
54
    public function getAddress()
55
    {
56
        return $this->_address;
57
    }
58
59
    /**
60
     * @param PostalAddress|string $address
61
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
62
     */
63
    public function setAddress($address)
64
    {
65
        $this->_address = $address;
66
        return $this;
67
    }
68
69
    /**
70
     * The overall rating, based on a collection of reviews or ratings, of the item.
71
     *
72
     * @var AggregateRating
73
     */
74
    private $_aggregateRating;
75
76
    /**
77
     * @return AggregateRating
78
     */
79
    public function getAggregateRating()
80
    {
81
        return $this->_aggregateRating;
82
    }
83
84
    /**
85
     * @param AggregateRating $aggregateRating
86
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
87
     */
88
    public function setAggregateRating($aggregateRating)
89
    {
90
        $this->_aggregateRating = $aggregateRating;
91
        return $this;
92
    }
93
94
    /**
95
     * An amenity feature (e.g. a characteristic or service) of the Accommodation.
96
     * This generic property does not make a statement about whether the feature is included in an offer
97
     * for the main accommodation or available at extra costs.
98
     *
99
     * @var LocationFeatureSpecification
100
     */
101
    private $_amenityFeature;
102
103
    /**
104
     * @return LocationFeatureSpecification
105
     */
106
    public function getAmenityFeature()
107
    {
108
        return $this->_amenityFeature;
109
    }
110
111
    /**
112
     * @param LocationFeatureSpecification $amenityFeature
113
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
114
     */
115
    public function setAmenityFeature($amenityFeature)
116
    {
117
        $this->_amenityFeature = $amenityFeature;
118
        return $this;
119
    }
120
121
    /**
122
     * A short textual code (also called "store code") that uniquely identifies a place of business.
123
     * The code is typically assigned by the parentOrganization and used in structured URLs.
124
     * For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047
125
     * the code "3047" is a branchCode for a particular branch.
126
     *
127
     * @var string
128
     */
129
    private $_branchCode;
130
131
    /**
132
     * @return string
133
     */
134
    public function getBranchCode()
135
    {
136
        return $this->_branchCode;
137
    }
138
139
    /**
140
     * @param string $branchCode
141
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
142
     */
143
    public function setBranchCode($branchCode)
144
    {
145
        $this->_branchCode = $branchCode;
146
        return $this;
147
    }
148
149
    /**
150
     * The basic containment relation between a place and one that contains it.
151
     * Supersedes containedIn.
152
     * Inverse property: containsPlace.
153
     *
154
     * @var Place
155
     */
156
    private $_containedInPlace;
157
158
    /**
159
     * @return Place
160
     */
161
    public function getContainedInPlace()
162
    {
163
        return $this->_containedInPlace;
164
    }
165
166
    /**
167
     * @param Place $containedInPlace
168
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
169
     */
170
    public function setContainedInPlace($containedInPlace)
171
    {
172
        $this->_containedInPlace = $containedInPlace;
173
        return $this;
174
    }
175
176
    /**
177
     * The basic containment relation between a place and another that it contains.
178
     * Inverse property: containedInPlace.
179
     *
180
     * @var Place
181
     */
182
    private $_containsPlace;
183
184
    /**
185
     * @return Place
186
     */
187
    public function getContainsPlace()
188
    {
189
        return $this->_containsPlace;
190
    }
191
192
    /**
193
     * @param Place $containsPlace
194
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
195
     */
196
    public function setContainsPlace($containsPlace)
197
    {
198
        $this->_containsPlace = $containsPlace;
199
        return $this;
200
    }
201
202
    /**
203
     * Upcoming or past event associated with this place, organization, or action.
204
     * Supersedes events.
205
     *
206
     * @var Event
207
     */
208
    private $_event;
209
210
    /**
211
     * @return Event
212
     */
213
    public function getEvent()
214
    {
215
        return $this->_event;
216
    }
217
218
    /**
219
     * @param Event $event
220
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
221
     */
222
    public function setEvent($event)
223
    {
224
        $this->_event = $event;
225
        return $this;
226
    }
227
228
    /**
229
     * The fax number.
230
     *
231
     * @var string
232
     */
233
    private $_faxNumber;
234
235
    /**
236
     * @return string
237
     */
238
    public function getFaxNumber()
239
    {
240
        return $this->_faxNumber;
241
    }
242
243
    /**
244
     * @param string $faxNumber
245
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
246
     */
247
    public function setFaxNumber($faxNumber)
248
    {
249
        $this->_faxNumber = $faxNumber;
250
        return $this;
251
    }
252
253
    /**
254
     * The geo coordinates of the place.
255
     *
256
     * @var GeoCoordinates|GeoShape
257
     */
258
    private $_geo;
259
260
    /**
261
     * @return GeoCoordinates|GeoShape
262
     */
263
    public function getGeo()
264
    {
265
        return $this->_geo;
266
    }
267
268
    /**
269
     * @param GeoCoordinates|GeoShape $geo
270
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
271
     */
272
    public function setGeo($geo)
273
    {
274
        $this->_geo = $geo;
275
        return $this;
276
    }
277
278
    /**
279
     * Represents a relationship between two geometries (or the places they represent), relating a containing geometry
280
     * to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point
281
     * of the interior of b lies in the interior of a". As defined in DE-9IM.
282
     *
283
     * @var
284
     */
285
    private $_geospatiallyContains;
286
287
    /**
288
     * @return mixed
289
     */
290
    public function getGeospatiallyContains()
291
    {
292
        return $this->_geospatiallyContains;
293
    }
294
295
    /**
296
     * @param mixed $geospatiallyContains
297
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
298
     */
299
    public function setGeospatiallyContains($geospatiallyContains)
300
    {
301
        $this->_geospatiallyContains = $geospatiallyContains;
302
        return $this;
303
    }
304
305
    /**
306
     * Represents a relationship between two geometries (or the places they represent),
307
     * relating a geometry to another that covers it. As defined in DE-9IM.
308
     *
309
     * @var
310
     */
311
    private $_geospatiallyCoveredBy;
312
313
    /**
314
     * @return mixed
315
     */
316
    public function getGeospatiallyCoveredBy()
317
    {
318
        return $this->_geospatiallyCoveredBy;
319
    }
320
321
    /**
322
     * @param mixed $geospatiallyCoveredBy
323
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
324
     */
325
    public function setGeospatiallyCoveredBy($geospatiallyCoveredBy)
326
    {
327
        $this->_geospatiallyCoveredBy = $geospatiallyCoveredBy;
328
        return $this;
329
    }
330
331
    /**
332
     * Represents a relationship between two geometries (or the places they represent), relating a covering geometry
333
     * to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in DE-9IM.
334
     *
335
     * @var GeospatialGeometry|Place
336
     */
337
    private $_geospatiallyCovers;
338
339
    /**
340
     * @return GeospatialGeometry|Place
341
     */
342
    public function getGeospatiallyCovers()
343
    {
344
        return $this->_geospatiallyCovers;
345
    }
346
347
    /**
348
     * @param GeospatialGeometry|Place $geospatiallyCovers
349
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
350
     */
351
    public function setGeospatiallyCovers($geospatiallyCovers)
352
    {
353
        $this->_geospatiallyCovers = $geospatiallyCovers;
354
        return $this;
355
    }
356
357
    /**
358
     * Represents a relationship between two geometries (or the places they represent), relating a geometry to another
359
     * that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the
360
     * intersection is less than that of at least one of them". As defined in DE-9IM.
361
     *
362
     * @var GeospatialGeometry|Place
363
     */
364
    private $_geospatiallyCrosses;
365
366
    /**
367
     * @return GeospatialGeometry|Place
368
     */
369
    public function getGeospatiallyCrosses()
370
    {
371
        return $this->_geospatiallyCrosses;
372
    }
373
374
    /**
375
     * @param GeospatialGeometry|Place $geospatiallyCrosses
376
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
377
     */
378
    public function setGeospatiallyCrosses($geospatiallyCrosses)
379
    {
380
        $this->_geospatiallyCrosses = $geospatiallyCrosses;
381
        return $this;
382
    }
383
384
    /**
385
     * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint:
386
     * they have no point in common. They form a set of disconnected geometries."
387
     * (a symmetric relationship, as defined in DE-9IM)
388
     *
389
     * @var GeospatialGeometry|Place
390
     */
391
    private $_geospatiallyDisjoint;
392
393
    /**
394
     * @return GeospatialGeometry|Place
395
     */
396
    public function getGeospatiallyDisjoint()
397
    {
398
        return $this->_geospatiallyDisjoint;
399
    }
400
401
    /**
402
     * @param GeospatialGeometry|Place $geospatiallyDisjoint
403
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
404
     */
405
    public function setGeospatiallyDisjoint($geospatiallyDisjoint)
406
    {
407
        $this->_geospatiallyDisjoint = $geospatiallyDisjoint;
408
        return $this;
409
    }
410
411
    /**
412
     * Represents spatial relations in which two geometries (or the places they represent) are topologically equal,
413
     * as defined in DE-9IM. "Two geometries are topologically equal if their interiors intersect and no part
414
     * of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship)
415
     *
416
     * @var GeospatialGeometry|Place
417
     */
418
    private $_geospatiallyEquals;
419
420
    /**
421
     * @return GeospatialGeometry|Place
422
     */
423
    public function getGeospatiallyEquals()
424
    {
425
        return $this->_geospatiallyEquals;
426
    }
427
428
    /**
429
     * @param GeospatialGeometry|Place $geospatiallyEquals
430
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
431
     */
432
    public function setGeospatiallyEquals($geospatiallyEquals)
433
    {
434
        $this->_geospatiallyEquals = $geospatiallyEquals;
435
        return $this;
436
    }
437
438
    /**
439
     * Represents spatial relations in which two geometries (or the places they represent) have at least one point
440
     * in common. As defined in DE-9IM.
441
     *
442
     * @var GeospatialGeometry|Place
443
     */
444
    private $_geospatiallyIntersects;
445
446
    /**
447
     * @return GeospatialGeometry|Place
448
     */
449
    public function getGeospatiallyIntersects()
450
    {
451
        return $this->_geospatiallyIntersects;
452
    }
453
454
    /**
455
     * @param mixed $geospatiallyIntersects
456
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
457
     */
458
    public function setGeospatiallyIntersects($geospatiallyIntersects)
459
    {
460
        $this->_geospatiallyIntersects = $geospatiallyIntersects;
461
        return $this;
462
    }
463
464
    /**
465
     * Represents a relationship between two geometries (or the places they represent), relating a geometry
466
     * to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in DE-9IM.
467
     *
468
     * @var GeospatialGeometry|Place
469
     */
470
    private $_geospatiallyOverlaps;
471
472
    /**
473
     * @return GeospatialGeometry|Place
474
     */
475
    public function getGeospatiallyOverlaps()
476
    {
477
        return $this->_geospatiallyOverlaps;
478
    }
479
480
    /**
481
     * @param GeospatialGeometry|Place $geospatiallyOverlaps
482
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
483
     */
484
    public function setGeospatiallyOverlaps($geospatiallyOverlaps)
485
    {
486
        $this->_geospatiallyOverlaps = $geospatiallyOverlaps;
487
        return $this;
488
    }
489
490
    /**
491
     * Represents spatial relations in which two geometries (or the places they represent) touch: they have
492
     * at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in DE-9IM )
493
     *
494
     * @var GeospatialGeometry|Place
495
     */
496
    private $_geospatiallyTouches;
497
498
    /**
499
     * @return GeospatialGeometry|Place
500
     */
501
    public function getGeospatiallyTouches()
502
    {
503
        return $this->_geospatiallyTouches;
504
    }
505
506
    /**
507
     * @param GeospatialGeometry|Place $geospatiallyTouches
508
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
509
     */
510
    public function setGeospatiallyTouches($geospatiallyTouches)
511
    {
512
        $this->_geospatiallyTouches = $geospatiallyTouches;
513
        return $this;
514
    }
515
516
    /**
517
     * Represents a relationship between two geometries (or the places they represent), relating a geometry to one
518
     * that contains it, i.e. it is inside (i.e. within) its interior. As defined in DE-9IM.
519
     *
520
     * @var GeospatialGeometry|Place
521
     */
522
    private $_geospatiallyWithin;
523
524
    /**
525
     * @return GeospatialGeometry|Place
526
     */
527
    public function getGeospatiallyWithin()
528
    {
529
        return $this->_geospatiallyWithin;
530
    }
531
532
    /**
533
     * @param GeospatialGeometry|Place $geospatiallyWithin
534
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
535
     */
536
    public function setGeospatiallyWithin($geospatiallyWithin)
537
    {
538
        $this->_geospatiallyWithin = $geospatiallyWithin;
539
        return $this;
540
    }
541
542
    /**
543
     * The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN)
544
     * of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties
545
     * and physical locations.
546
     *
547
     * @var string
548
     */
549
    private $_globalLocationNumber;
550
551
    /**
552
     * @return string
553
     */
554
    public function getGlobalLocationNumber()
555
    {
556
        return $this->_globalLocationNumber;
557
    }
558
559
    /**
560
     * @param string $globalLocationNumber
561
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
562
     */
563
    public function setGlobalLocationNumber($globalLocationNumber)
564
    {
565
        $this->_globalLocationNumber = $globalLocationNumber;
566
        return $this;
567
    }
568
569
    /**
570
     * A URL to a map of the place.
571
     * Supersedes map, maps.
572
     *
573
     * @var Map, URL
574
     */
575
    private $_hasMap;
576
577
    /**
578
     * @return Map
579
     */
580
    public function getHasMap()
581
    {
582
        return $this->_hasMap;
583
    }
584
585
    /**
586
     * @param Map $hasMap
587
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
588
     */
589
    public function setHasMap($hasMap)
590
    {
591
        $this->_hasMap = $hasMap;
592
        return $this;
593
    }
594
595
    /**
596
     * A flag to signal that the item, event, or place is accessible for free.
597
     * Supersedes free.
598
     *
599
     * @var Boolean
600
     */
601
    private $_isAccessibleForFree;
602
603
    /**
604
     * @return bool
605
     */
606
    public function isAccessibleForFree()
607
    {
608
        return $this->_isAccessibleForFree;
609
    }
610
611
    /**
612
     * @param bool $isAccessibleForFree
613
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
614
     */
615
    public function setIsAccessibleForFree($isAccessibleForFree)
616
    {
617
        $this->_isAccessibleForFree = $isAccessibleForFree;
618
        return $this;
619
    }
620
621
    /**
622
     * The International Standard of Industrial Classification of All Economic Activities (ISIC),
623
     * Revision 4 code for a particular organization, business person, or place.
624
     *
625
     * @var string
626
     */
627
    private $_isicV4;
628
629
    /**
630
     * @return string
631
     */
632
    public function getIsicV4()
633
    {
634
        return $this->_isicV4;
635
    }
636
637
    /**
638
     * @param string $isicV4
639
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
640
     */
641
    public function setIsicV4($isicV4)
642
    {
643
        $this->_isicV4 = $isicV4;
644
        return $this;
645
    }
646
647
    /**
648
     * An associated logo.
649
     *
650
     * @var ImageObject|URL
651
     */
652
    private $_logo;
653
654
    /**
655
     * @return ImageObject|URL
656
     */
657
    public function getLogo()
658
    {
659
        return $this->_logo;
660
    }
661
662
    /**
663
     * @param ImageObject|URL $logo
664
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
665
     */
666
    public function setLogo($logo)
667
    {
668
        $this->_logo = $logo;
669
        return $this;
670
    }
671
672
    /**
673
     * The total number of individuals that may attend an event or venue.
674
     *
675
     * @var Integer
676
     */
677
    private $_maximumAttendeeCapacity;
678
679
    /**
680
     * @return int
681
     */
682
    public function getMaximumAttendeeCapacity()
683
    {
684
        return $this->_maximumAttendeeCapacity;
685
    }
686
687
    /**
688
     * @param int $maximumAttendeeCapacity
689
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
690
     */
691
    public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
692
    {
693
        $this->_maximumAttendeeCapacity = $maximumAttendeeCapacity;
694
        return $this;
695
    }
696
697
    /**
698
     * The opening hours of a certain place.
699
     *
700
     * @var OpeningHoursSpecification
701
     */
702
    private $_openingHoursSpecification;
703
704
    /**
705
     * @return OpeningHoursSpecification
706
     */
707
    public function getOpeningHoursSpecification()
708
    {
709
        return $this->_openingHoursSpecification;
710
    }
711
712
    /**
713
     * @param OpeningHoursSpecification $openingHoursSpecification
714
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
715
     */
716
    public function setOpeningHoursSpecification($openingHoursSpecification)
717
    {
718
        $this->_openingHoursSpecification = $openingHoursSpecification;
719
        return $this;
720
    }
721
722
    /**
723
     * A photograph of this place. Supersedes photos.
724
     *
725
     * @var ImageObject|Photograph
726
     */
727
    private $_photo;
728
729
    /**
730
     * @return ImageObject|Photograph
731
     */
732
    public function getPhoto()
733
    {
734
        return $this->_photo;
735
    }
736
737
    /**
738
     * @param ImageObject|Photograph $photo
739
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
740
     */
741
    public function setPhoto($photo)
742
    {
743
        $this->_photo = $photo;
744
        return $this;
745
    }
746
747
    /**
748
     * A flag to signal that the Place is open to public visitors.
749
     * If this property is omitted there is no assumed default boolean value
750
     *
751
     * @var Boolean
752
     */
753
    private $_publicAccess;
754
755
    /**
756
     * @return bool
757
     */
758
    public function isPublicAccess()
759
    {
760
        return $this->_publicAccess;
761
    }
762
763
    /**
764
     * @param bool $publicAccess
765
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
766
     */
767
    public function setPublicAccess($publicAccess)
768
    {
769
        $this->_publicAccess = $publicAccess;
770
        return $this;
771
    }
772
773
    /**
774
     * A review of the item. Supersedes reviews.
775
     *
776
     * @var Review
777
     */
778
    private $_review;
779
780
    /**
781
     * @return Review
782
     */
783
    public function getReview()
784
    {
785
        return $this->_review;
786
    }
787
788
    /**
789
     * @param Review $review
790
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
791
     */
792
    public function setReview($review)
793
    {
794
        $this->_review = $review;
795
        return $this;
796
    }
797
798
    /**
799
     * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.
800
     *
801
     * @var Boolean
802
     */
803
    private $_smokingAllowed;
804
805
    /**
806
     * @return bool
807
     */
808
    public function isSmokingAllowed()
809
    {
810
        return $this->_smokingAllowed;
811
    }
812
813
    /**
814
     * @param bool $smokingAllowed
815
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
816
     */
817
    public function setSmokingAllowed($smokingAllowed)
818
    {
819
        $this->_smokingAllowed = $smokingAllowed;
820
        return $this;
821
    }
822
823
    /**
824
     * The special opening hours of a certain place.
825
     * Use this to explicitly override general opening hours brought in scope by
826
     * openingHoursSpecification or openingHours.
827
     *
828
     * @var OpeningHoursSpecification
829
     */
830
    private $_specialOpeningHoursSpecification;
831
832
    /**
833
     * @return OpeningHoursSpecification
834
     */
835
    public function getSpecialOpeningHoursSpecification()
836
    {
837
        return $this->_specialOpeningHoursSpecification;
838
    }
839
840
    /**
841
     * @param OpeningHoursSpecification $specialOpeningHoursSpecification
842
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
843
     */
844
    public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification)
845
    {
846
        $this->_specialOpeningHoursSpecification = $specialOpeningHoursSpecification;
847
        return $this;
848
    }
849
850
    /**
851
     * The telephone number.
852
     *
853
     * @var string
854
     */
855
    private $_telephone;
856
857
    /**
858
     * @return string
859
     */
860
    public function getTelephone()
861
    {
862
        return $this->_telephone;
863
    }
864
865
    /**
866
     * @param string $telephone
867
     * @return PlaceTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type PlaceTrait is a trait, and thus cannot be used for type-hinting in PHP. Maybe consider adding an interface and use that for type-hinting?

In PHP traits cannot be used for type-hinting as they do not define a well-defined structure. This is because any class that uses a trait can rename that trait’s methods.

If you would like to return an object that has a guaranteed set of methods, you could create a companion interface that lists these methods explicitly.

Loading history...
868
     */
869
    public function setTelephone($telephone)
870
    {
871
        $this->_telephone = $telephone;
872
        return $this;
873
    }
874
}