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

EventTrait::setInLanguage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace luya\web\jsonld;
4
5
/**
6
 * JsonLd - Event trait
7
 *
8
 * @see http://schema.org/Event
9
 *
10
 * @author Alex Schmid
11
 * @since 1.0.0
12
 */
13
trait EventTrait
14
{
15
    /**
16
     * The subject matter of the content.
17
     * Inverse property: subjectOf.
18
     *
19
     * @var Thing
20
     */
21
    private $_about;
22
23
    /**
24
     * @return Thing
25
     */
26
    public function getAbout()
27
    {
28
        return $this->_about;
29
    }
30
31
    /**
32
     * @param Thing $about
33
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
34
     */
35
    public function setAbout($about)
36
    {
37
        $this->_about = $about;
38
        return $this;
39
    }
40
41
    /**
42
     * An actor, e.g. in tv, radio, movie, video games etc., or in an event.
43
     * Actors can be associated with individual items or with a series, episode, clip. Supersedes actors.
44
     *
45
     * @var Person
46
     */
47
    private $_actor;
48
49
    /**
50
     * @return Person
51
     */
52
    public function getActor()
53
    {
54
        return $this->_actor;
55
    }
56
57
    /**
58
     * @param Person $actor
59
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
60
     */
61
    public function setActor($actor)
62
    {
63
        $this->_actor = $actor;
64
        return $this;
65
    }
66
67
    /**
68
     * The overall rating, based on a collection of reviews or ratings, of the item.
69
     *
70
     * @var AggregateRating
71
     */
72
    private $_aggregateRating;
73
74
    /**
75
     * @return AggregateRating
76
     */
77
    public function getAggregateRating()
78
    {
79
        return $this->_aggregateRating;
80
    }
81
82
    /**
83
     * @param AggregateRating $aggregateRating
84
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
85
     */
86
    public function setAggregateRating($aggregateRating)
87
    {
88
        $this->_aggregateRating = $aggregateRating;
89
        return $this;
90
    }
91
92
    /**
93
     * A person or organization attending the event. Supersedes attendees.
94
     *
95
     * @var Organization|Person
96
     */
97
    private $_attendee;
98
99
    /**
100
     * @return Organization|Person
101
     */
102
    public function getAttendee()
103
    {
104
        return $this->_attendee;
105
    }
106
107
    /**
108
     * @param Organization|Person $attendee
109
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
110
     */
111
    public function setAttendee($attendee)
112
    {
113
        $this->_attendee = $attendee;
114
        return $this;
115
    }
116
117
    /**
118
     * An intended audience, i.e. a group for whom something was created. Supersedes serviceAudience.
119
     *
120
     * @var Audience
121
     */
122
    private $_audience;
123
124
    /**
125
     * @return Audience
126
     */
127
    public function getAudience()
128
    {
129
        return $this->_audience;
130
    }
131
132
    /**
133
     * @param Audience $audience
134
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
135
     */
136
    public function setAudience($audience)
137
    {
138
        $this->_audience = $audience;
139
        return $this;
140
    }
141
142
    /**
143
     * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
144
     *
145
     * @var Organization|Person
146
     */
147
    private $_composer;
148
149
    /**
150
     * @return Organization|Person
151
     */
152
    public function getComposer()
153
    {
154
        return $this->_composer;
155
    }
156
157
    /**
158
     * @param Organization|Person $composer
159
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
160
     */
161
    public function setComposer($composer)
162
    {
163
        $this->_composer = $composer;
164
        return $this;
165
    }
166
167
    /**
168
     * A secondary contributor to the CreativeWork or Event.
169
     *
170
     * @var Organization|Person
171
     */
172
    private $_contributor;
173
174
    /**
175
     * @return Organization|Person
176
     */
177
    public function getContributor()
178
    {
179
        return $this->_contributor;
180
    }
181
182
    /**
183
     * @param Organization|Person $contributor
184
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
185
     */
186
    public function setContributor($contributor)
187
    {
188
        $this->_contributor = $contributor;
189
        return $this;
190
    }
191
192
    /**
193
     * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event.
194
     * Directors can be associated with individual items or with a series, episode, clip.
195
     * Supersedes directors.
196
     *
197
     * @var Person
198
     */
199
    private $_director;
200
201
    /**
202
     * @return Person
203
     */
204
    public function getDirector()
205
    {
206
        return $this->_director;
207
    }
208
209
    /**
210
     * @param Person $director
211
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
212
     */
213
    public function setDirector($director)
214
    {
215
        $this->_director = $director;
216
        return $this;
217
    }
218
219
    /**
220
     * The time admission will commence.
221
     *
222
     * @var DateTime
223
     */
224
    private $_doorTime;
225
226
    /**
227
     * @return DateTime
228
     */
229
    public function getDoorTime()
230
    {
231
        return $this->_doorTime;
232
    }
233
234
    /**
235
     * @param DateTime $doorTime
236
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
237
     */
238
    public function setDoorTime($doorTime)
239
    {
240
        $this->_doorTime = $doorTime;
241
        return $this;
242
    }
243
244
    /**
245
     * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
246
     *
247
     * @var Duration
248
     */
249
    private $_duration;
250
251
    /**
252
     * @return Duration
253
     */
254
    public function getDuration()
255
    {
256
        return $this->_duration;
257
    }
258
259
    /**
260
     * @param Duration $duration
261
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
262
     */
263
    public function setDuration($duration)
264
    {
265
        $this->_duration = $duration;
266
        return $this;
267
    }
268
269
    /**
270
     * The end date and time of the item (in ISO 8601 date format).
271
     *
272
     * @var Date|DateTime
273
     */
274
    private $_endDate;
275
276
    /**
277
     * @return Date|DateTime
278
     */
279
    public function getEndDate()
280
    {
281
        return $this->_endDate;
282
    }
283
284
    /**
285
     * @param Date|DateTime $endDate
286
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
287
     */
288
    public function setEndDate($endDate)
289
    {
290
        $this->_endDate = $endDate;
291
        return $this;
292
    }
293
294
    /**
295
     * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
296
     *
297
     * @var EventStatusType
298
     */
299
    private $_eventStatus;
300
301
    /**
302
     * @return EventStatusType
303
     */
304
    public function getEventStatus()
305
    {
306
        return $this->_eventStatus;
307
    }
308
309
    /**
310
     * @param EventStatusType $eventStatus
311
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
312
     */
313
    public function setEventStatus($eventStatus)
314
    {
315
        $this->_eventStatus = $eventStatus;
316
        return $this;
317
    }
318
319
    /**
320
     * A person or organization that supports (sponsors) something through some kind of financial contribution.
321
     *
322
     * @var Organization|Person
323
     */
324
    private $_funder;
325
326
    /**
327
     * @return Organization|Person
328
     */
329
    public function getFunder()
330
    {
331
        return $this->_funder;
332
    }
333
334
    /**
335
     * @param Organization|Person $funder
336
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
337
     */
338
    public function setFunder($funder)
339
    {
340
        $this->_funder = $funder;
341
        return $this;
342
    }
343
344
    /**
345
     * The language of the content or performance or used in an action.
346
     * Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage.
347
     * Supersedes language.
348
     *
349
     * @var Language|Text
350
     */
351
    private $_inLanguage;
352
353
    /**
354
     * @return Language|Text
355
     */
356
    public function getInLanguage()
357
    {
358
        return $this->_inLanguage;
359
    }
360
361
    /**
362
     * @param Language|Text $inLanguage
363
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
364
     */
365
    public function setInLanguage($inLanguage)
366
    {
367
        $this->_inLanguage = $inLanguage;
368
        return $this;
369
    }
370
371
    /**
372
     * A flag to signal that the item, event, or place is accessible for free. Supersedes free.
373
     *
374
     * @var Boolean
375
     */
376
    private $_isAccessibleForFree;
377
378
    /**
379
     * @return bool
380
     */
381
    public function isAccessibleForFree()
382
    {
383
        return $this->_isAccessibleForFree;
384
    }
385
386
    /**
387
     * @param bool $isAccessibleForFree
388
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
389
     */
390
    public function setIsAccessibleForFree($isAccessibleForFree)
391
    {
392
        $this->_isAccessibleForFree = $isAccessibleForFree;
393
        return $this;
394
    }
395
396
    /**
397
     * The location of for example where the event is happening, an organization is located,
398
     * or where an action takes place.
399
     *
400
     * @var Place|PostalAddress|string
401
     */
402
    private $_location;
403
404
    /**
405
     * @return Place|PostalAddress|string
406
     */
407
    public function getLocation()
408
    {
409
        return $this->_location;
410
    }
411
412
    /**
413
     * @param Place|PostalAddress|string $location
414
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
415
     */
416
    public function setLocation($location)
417
    {
418
        $this->_location = $location;
419
        return $this;
420
    }
421
422
    /**
423
     * The total number of individuals that may attend an event or venue.
424
     *
425
     * @var Integer
426
     */
427
    private $_maximumAttendeeCapacity;
428
429
    /**
430
     * @return int
431
     */
432
    public function getMaximumAttendeeCapacity()
433
    {
434
        return $this->_maximumAttendeeCapacity;
435
    }
436
437
    /**
438
     * @param int $maximumAttendeeCapacity
439
     */
440
    public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
441
    {
442
        $this->_maximumAttendeeCapacity = $maximumAttendeeCapacity;
443
    }
444
445
    /**
446
     * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie,
447
     * perform a service, or give away tickets to an event.
448
     *
449
     * @var Offer
450
     */
451
    private $_offers;
452
453
    /**
454
     * @return Offer
455
     */
456
    public function getOffers()
457
    {
458
        return $this->_offers;
459
    }
460
461
    /**
462
     * @param Offer $offers
463
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
464
     */
465
    public function setOffers($offers)
466
    {
467
        $this->_offers = $offers;
468
        return $this;
469
    }
470
471
    /**
472
     * An organizer of an Event.
473
     *
474
     * @var Organization|Person
475
     */
476
    private $_organizer;
477
478
    /**
479
     * @return Organization|Person
480
     */
481
    public function getOrganizer()
482
    {
483
        return $this->_organizer;
484
    }
485
486
    /**
487
     * @param Organization|Person $organizer
488
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
489
     */
490
    public function setOrganizer($organizer)
491
    {
492
        $this->_organizer = $organizer;
493
        return $this;
494
    }
495
496
    /**
497
     * A performer at the event—for example, a presenter, musician, musical group or actor.
498
     * Supersedes performers.
499
     *
500
     * @var Organization|Person
501
     */
502
    private $_performer;
503
504
    /**
505
     * @return Organization|Person
506
     */
507
    public function getPerformer()
508
    {
509
        return $this->_performer;
510
    }
511
512
    /**
513
     * @param Organization|Person $performer
514
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
515
     */
516
    public function setPerformer($performer)
517
    {
518
        $this->_performer = $performer;
519
        return $this;
520
    }
521
522
    /**
523
     * Used in conjunction with eventStatus for rescheduled or cancelled events.
524
     * This property contains the previously scheduled start date.
525
     * For rescheduled events, the startDate property should be used for the newly scheduled start date.
526
     * In the (rare) case of an event that has been postponed and rescheduled multiple times,
527
     * this field may be repeated.
528
     *
529
     * @var Date
530
     */
531
    private $_previousStartDate;
532
533
    /**
534
     * @return Date
535
     */
536
    public function getPreviousStartDate()
537
    {
538
        return $this->_previousStartDate;
539
    }
540
541
    /**
542
     * @param Date $previousStartDate
543
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
544
     */
545
    public function setPreviousStartDate($previousStartDate)
546
    {
547
        $this->_previousStartDate = $previousStartDate;
548
        return $this;
549
    }
550
551
    /**
552
     * The CreativeWork that captured all or part of this Event.
553
     * Inverse property: recordedAt
554
     *
555
     * @var CreativeWork
556
     */
557
    private $_recordedIn;
558
559
    /**
560
     * @return CreativeWork
561
     */
562
    public function getRecordedIn()
563
    {
564
        return $this->_recordedIn;
565
    }
566
567
    /**
568
     * @param CreativeWork $recordedIn
569
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
570
     */
571
    public function setRecordedIn($recordedIn)
572
    {
573
        $this->_recordedIn = $recordedIn;
574
        return $this;
575
    }
576
577
    /**
578
     * The number of attendee places for an event that remain unallocated.
579
     *
580
     * @var Integer
581
     */
582
    private $_remainingAttendeeCapacity;
583
584
    /**
585
     * @return int
586
     */
587
    public function getRemainingAttendeeCapacity()
588
    {
589
        return $this->_remainingAttendeeCapacity;
590
    }
591
592
    /**
593
     * @param int $remainingAttendeeCapacity
594
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
595
     */
596
    public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
597
    {
598
        $this->_remainingAttendeeCapacity = $remainingAttendeeCapacity;
599
        return $this;
600
    }
601
602
    /**
603
     * A review of the item.
604
     * Supersedes reviews.
605
     *
606
     * @var Review
607
     */
608
    private $_review;
609
610
    /**
611
     * @return Review
612
     */
613
    public function getReview()
614
    {
615
        return $this->_review;
616
    }
617
618
    /**
619
     * @param Review $review
620
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
621
     */
622
    public function setReview($review)
623
    {
624
        $this->_review = $review;
625
        return $this;
626
    }
627
628
    /**
629
     * A person or organization that supports a thing through a pledge, promise, or financial contribution.
630
     * e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
631
     *
632
     * @var Organization|Person
633
     */
634
    private $_sponsor;
635
636
    /**
637
     * @return Organization|Person
638
     */
639
    public function getSponsor()
640
    {
641
        return $this->_sponsor;
642
    }
643
644
    /**
645
     * @param Organization|Person $sponsor
646
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
647
     */
648
    public function setSponsor($sponsor)
649
    {
650
        $this->_sponsor = $sponsor;
651
        return $this;
652
    }
653
654
    /**
655
     * The start date and time of the item (in ISO 8601 date format).
656
     *
657
     * @var Date|DateTime
658
     */
659
    private $_startDate;
660
661
    /**
662
     * @return Date|DateTime
663
     */
664
    public function getStartDate()
665
    {
666
        return $this->_startDate;
667
    }
668
669
    /**
670
     * @param Date|DateTime $startDate
671
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
672
     */
673
    public function setStartDate($startDate)
674
    {
675
        $this->_startDate = $startDate;
676
        return $this;
677
    }
678
679
    /**
680
     * An Event that is part of this event.
681
     * For example, a conference event includes many presentations, each of which is a subEvent of the conference.
682
     * Supersedes subEvents.
683
     * Inverse property: superEvent.
684
     *
685
     * @var Event
686
     */
687
    private $_subEvent;
688
689
    /**
690
     * @return Event
691
     */
692
    public function getSubEvent()
693
    {
694
        return $this->_subEvent;
695
    }
696
697
    /**
698
     * @param Event $subEvent
699
     */
700
    public function setSubEvent($subEvent)
701
    {
702
        $this->_subEvent = $subEvent;
703
    }
704
705
    /**
706
     * An event that this event is a part of.
707
     * For example, a collection of individual music performances might each have a music festival as their superEvent.
708
     * Inverse property: subEvent.
709
     *
710
     * @var Event
711
     */
712
    private $_superEvent;
713
714
    /**
715
     * @return Event
716
     */
717
    public function getSuperEvent()
718
    {
719
        return $this->_superEvent;
720
    }
721
722
    /**
723
     * @param Event $superEvent
724
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
725
     */
726
    public function setSuperEvent($superEvent)
727
    {
728
        $this->_superEvent = $superEvent;
729
        return $this;
730
    }
731
732
    /**
733
     * Organization or person who adapts a creative work to different languages, regional differences
734
     * and technical requirements of a target market, or that translates during some event.
735
     *
736
     * @var Organization|Person
737
     */
738
    private $_translator;
739
740
    /**
741
     * @return Organization|Person
742
     */
743
    public function getTranslator()
744
    {
745
        return $this->_translator;
746
    }
747
748
    /**
749
     * @param Organization|Person $translator
750
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
751
     */
752
    public function setTranslator($translator)
753
    {
754
        $this->_translator = $translator;
755
        return $this;
756
    }
757
758
    /**
759
     * The typical expected age range, e.g. '7-9', '11-'.
760
     *
761
     * @var string
762
     */
763
    private $_typicalAgeRange;
764
765
    /**
766
     * @return string
767
     */
768
    public function getTypicalAgeRange()
769
    {
770
        return $this->_typicalAgeRange;
771
    }
772
773
    /**
774
     * @param string $typicalAgeRange
775
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
776
     */
777
    public function setTypicalAgeRange($typicalAgeRange)
778
    {
779
        $this->_typicalAgeRange = $typicalAgeRange;
780
        return $this;
781
    }
782
783
    /**
784
     * A work featured in some event, e.g. exhibited in an ExhibitionEvent.
785
     * Specific subproperties are available for workPerformed (e.g. a play),
786
     * or a workPresented (a Movie at a ScreeningEvent).
787
     *
788
     * @var CreativeWork
789
     */
790
    private $_workFeatured;
791
792
    /**
793
     * @return CreativeWork
794
     */
795
    public function getWorkFeatured()
796
    {
797
        return $this->_workFeatured;
798
    }
799
800
    /**
801
     * @param CreativeWork $workFeatured
802
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
803
     */
804
    public function setWorkFeatured($workFeatured)
805
    {
806
        $this->_workFeatured = $workFeatured;
807
        return $this;
808
    }
809
810
    /**
811
     * A work performed in some event, for example a play performed in a TheaterEvent.
812
     *
813
     * @var CreativeWork
814
     */
815
    private $_workPerformed;
816
817
    /**
818
     * @return CreativeWork
819
     */
820
    public function getWorkPerformed()
821
    {
822
        return $this->_workPerformed;
823
    }
824
825
    /**
826
     * @param CreativeWork $workPerformed
827
     * @return EventTrait
0 ignored issues
show
Comprehensibility Bug introduced by
The return type EventTrait 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...
828
     */
829
    public function setWorkPerformed($workPerformed)
830
    {
831
        $this->_workPerformed = $workPerformed;
832
        return $this;
833
    }
834
}