/
Event.php
1131 lines (996 loc) · 31 KB
/
Event.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* Event
*
* PHP version 5
*
* @category Class
* @package Metatavu\LinkedEvents
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Linked Events information API
*
* Linked Events provides categorized data on events and places using JSON-LD format. Events can be searched by date and location. Location can be exact address or larger area such as neighbourhood or borough JSON-LD format is streamlined using include mechanism. API users can request that certain fields are included directly into the result, instead of being hyperlinks to objects. Several fields are multilingual. These are implemented as object with each language variant as property. In this specification each multilingual field has (fi,sv,en) property triplet as example.
*
* OpenAPI spec version: v1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Metatavu\LinkedEvents\Model;
use \ArrayAccess;
/**
* Event Class Doc Comment
*
* @category Class
* @description Describes the actual events. Linked events API supports organizing events into hierarchies. This is implemented with collection events called \"super events\". Super events are normal event objects, that reference contained events in \"sub_events\" property. Currently there are two major use cases: events such as \"Helsinki Festival\", which consist of unique events over a span of time and recurring events such as theatrical productions with multiple showings. It is implementation dependent how the grouping of events is done. It should be noted that grouping might be automatic based on eg. event name and thus group unrelated events together and miss related events. Users of data are advised to prepare for this.
* @package Metatavu\LinkedEvents
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class Event implements ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'event';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'id' => 'string',
'location' => '\Metatavu\LinkedEvents\Model\Place',
'keywords' => '\Metatavu\LinkedEvents\Model\IdRef[]',
'inLanguage' => '\Metatavu\LinkedEvents\Model\Language[]',
'superEvent' => '\Metatavu\LinkedEvents\Model\IdRef',
'superEventType' => 'string',
'eventStatus' => 'string',
'publicationStatus' => 'string',
'externalLinks' => '\Metatavu\LinkedEvents\Model\Eventlink[]',
'offers' => '\Metatavu\LinkedEvents\Model\Offer[]',
'subEvents' => '\Metatavu\LinkedEvents\Model\IdRef[]',
'customData' => 'object',
'name' => '\Metatavu\LinkedEvents\Model\EventName',
'images' => '\Metatavu\LinkedEvents\Model\Image[]',
'createdTime' => '\DateTime',
'lastModifiedTime' => '\DateTime',
'infoUrl' => '\Metatavu\LinkedEvents\Model\EventInfoUrl',
'description' => 'object',
'shortDescription' => 'object',
'context' => 'string',
'type' => 'string',
'datePublished' => '\DateTime',
'provider' => 'object',
'locationExtraInfo' => 'object',
'startTime' => '\DateTime',
'endTime' => '\DateTime',
'hasStartTime' => 'bool',
'hasEndTime' => 'bool',
'audience' => '\Metatavu\LinkedEvents\Model\Keyword[]',
'dataSource' => 'string',
'createdBy' => 'string',
'lastModifiedBy' => 'string',
'publisher' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'id' => null,
'location' => null,
'keywords' => null,
'inLanguage' => null,
'superEvent' => null,
'superEventType' => null,
'eventStatus' => null,
'publicationStatus' => null,
'externalLinks' => null,
'offers' => null,
'subEvents' => null,
'customData' => null,
'name' => null,
'images' => null,
'createdTime' => 'date-time',
'lastModifiedTime' => 'date-time',
'infoUrl' => null,
'description' => null,
'shortDescription' => null,
'context' => null,
'type' => null,
'datePublished' => 'date-time',
'provider' => null,
'locationExtraInfo' => null,
'startTime' => 'date-time',
'endTime' => 'date-time',
'hasStartTime' => null,
'hasEndTime' => null,
'audience' => null,
'dataSource' => null,
'createdBy' => null,
'lastModifiedBy' => null,
'publisher' => null
];
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'id' => 'id',
'location' => 'location',
'keywords' => 'keywords',
'inLanguage' => 'in_language',
'superEvent' => 'super_event',
'superEventType' => 'super_event_type',
'eventStatus' => 'event_status',
'publicationStatus' => 'publication_status',
'externalLinks' => 'external_links',
'offers' => 'offers',
'subEvents' => 'sub_events',
'customData' => 'custom_data',
'name' => 'name',
'images' => 'images',
'createdTime' => 'created_time',
'lastModifiedTime' => 'last_modified_time',
'infoUrl' => 'info_url',
'description' => 'description',
'shortDescription' => 'short_description',
'context' => '@context',
'type' => '@type',
'datePublished' => 'date_published',
'provider' => 'provider',
'locationExtraInfo' => 'location_extra_info',
'startTime' => 'start_time',
'endTime' => 'end_time',
'hasStartTime' => 'has_start_time',
'hasEndTime' => 'has_end_time',
'audience' => 'audience',
'dataSource' => 'data_source',
'createdBy' => 'created_by',
'lastModifiedBy' => 'last_modified_by',
'publisher' => 'publisher'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'id' => 'setId',
'location' => 'setLocation',
'keywords' => 'setKeywords',
'inLanguage' => 'setInLanguage',
'superEvent' => 'setSuperEvent',
'superEventType' => 'setSuperEventType',
'eventStatus' => 'setEventStatus',
'publicationStatus' => 'setPublicationStatus',
'externalLinks' => 'setExternalLinks',
'offers' => 'setOffers',
'subEvents' => 'setSubEvents',
'customData' => 'setCustomData',
'name' => 'setName',
'images' => 'setImages',
'createdTime' => 'setCreatedTime',
'lastModifiedTime' => 'setLastModifiedTime',
'infoUrl' => 'setInfoUrl',
'description' => 'setDescription',
'shortDescription' => 'setShortDescription',
'context' => 'setContext',
'type' => 'setType',
'datePublished' => 'setDatePublished',
'provider' => 'setProvider',
'locationExtraInfo' => 'setLocationExtraInfo',
'startTime' => 'setStartTime',
'endTime' => 'setEndTime',
'hasStartTime' => 'setHasStartTime',
'hasEndTime' => 'setHasEndTime',
'audience' => 'setAudience',
'dataSource' => 'setDataSource',
'createdBy' => 'setCreatedBy',
'lastModifiedBy' => 'setLastModifiedBy',
'publisher' => 'setPublisher'
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'id' => 'getId',
'location' => 'getLocation',
'keywords' => 'getKeywords',
'inLanguage' => 'getInLanguage',
'superEvent' => 'getSuperEvent',
'superEventType' => 'getSuperEventType',
'eventStatus' => 'getEventStatus',
'publicationStatus' => 'getPublicationStatus',
'externalLinks' => 'getExternalLinks',
'offers' => 'getOffers',
'subEvents' => 'getSubEvents',
'customData' => 'getCustomData',
'name' => 'getName',
'images' => 'getImages',
'createdTime' => 'getCreatedTime',
'lastModifiedTime' => 'getLastModifiedTime',
'infoUrl' => 'getInfoUrl',
'description' => 'getDescription',
'shortDescription' => 'getShortDescription',
'context' => 'getContext',
'type' => 'getType',
'datePublished' => 'getDatePublished',
'provider' => 'getProvider',
'locationExtraInfo' => 'getLocationExtraInfo',
'startTime' => 'getStartTime',
'endTime' => 'getEndTime',
'hasStartTime' => 'getHasStartTime',
'hasEndTime' => 'getHasEndTime',
'audience' => 'getAudience',
'dataSource' => 'getDataSource',
'createdBy' => 'getCreatedBy',
'lastModifiedBy' => 'getLastModifiedBy',
'publisher' => 'getPublisher'
];
public static function attributeMap()
{
return self::$attributeMap;
}
public static function setters()
{
return self::$setters;
}
public static function getters()
{
return self::$getters;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values initializing the model
*/
public function __construct(array $data = null)
{
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['location'] = isset($data['location']) ? $data['location'] : null;
$this->container['keywords'] = isset($data['keywords']) ? $data['keywords'] : null;
$this->container['inLanguage'] = isset($data['inLanguage']) ? $data['inLanguage'] : null;
$this->container['superEvent'] = isset($data['superEvent']) ? $data['superEvent'] : null;
$this->container['superEventType'] = isset($data['superEventType']) ? $data['superEventType'] : null;
$this->container['eventStatus'] = isset($data['eventStatus']) ? $data['eventStatus'] : null;
$this->container['publicationStatus'] = isset($data['publicationStatus']) ? $data['publicationStatus'] : null;
$this->container['externalLinks'] = isset($data['externalLinks']) ? $data['externalLinks'] : null;
$this->container['offers'] = isset($data['offers']) ? $data['offers'] : null;
$this->container['subEvents'] = isset($data['subEvents']) ? $data['subEvents'] : null;
$this->container['customData'] = isset($data['customData']) ? $data['customData'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['images'] = isset($data['images']) ? $data['images'] : null;
$this->container['createdTime'] = isset($data['createdTime']) ? $data['createdTime'] : null;
$this->container['lastModifiedTime'] = isset($data['lastModifiedTime']) ? $data['lastModifiedTime'] : null;
$this->container['infoUrl'] = isset($data['infoUrl']) ? $data['infoUrl'] : null;
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
$this->container['shortDescription'] = isset($data['shortDescription']) ? $data['shortDescription'] : null;
$this->container['context'] = isset($data['context']) ? $data['context'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['datePublished'] = isset($data['datePublished']) ? $data['datePublished'] : null;
$this->container['provider'] = isset($data['provider']) ? $data['provider'] : null;
$this->container['locationExtraInfo'] = isset($data['locationExtraInfo']) ? $data['locationExtraInfo'] : null;
$this->container['startTime'] = isset($data['startTime']) ? $data['startTime'] : null;
$this->container['endTime'] = isset($data['endTime']) ? $data['endTime'] : null;
$this->container['hasStartTime'] = isset($data['hasStartTime']) ? $data['hasStartTime'] : null;
$this->container['hasEndTime'] = isset($data['hasEndTime']) ? $data['hasEndTime'] : null;
$this->container['audience'] = isset($data['audience']) ? $data['audience'] : null;
$this->container['dataSource'] = isset($data['dataSource']) ? $data['dataSource'] : null;
$this->container['createdBy'] = isset($data['createdBy']) ? $data['createdBy'] : null;
$this->container['lastModifiedBy'] = isset($data['lastModifiedBy']) ? $data['lastModifiedBy'] : null;
$this->container['publisher'] = isset($data['publisher']) ? $data['publisher'] : null;
}
/**
* show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalid_properties = [];
if ($this->container['location'] === null) {
$invalid_properties[] = "'location' can't be null";
}
if ($this->container['keywords'] === null) {
$invalid_properties[] = "'keywords' can't be null";
}
if ($this->container['publicationStatus'] === null) {
$invalid_properties[] = "'publicationStatus' can't be null";
}
if ($this->container['startTime'] === null) {
$invalid_properties[] = "'startTime' can't be null";
}
return $invalid_properties;
}
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
if ($this->container['location'] === null) {
return false;
}
if ($this->container['keywords'] === null) {
return false;
}
if ($this->container['publicationStatus'] === null) {
return false;
}
if ($this->container['startTime'] === null) {
return false;
}
return true;
}
/**
* Gets id
* @return string
*/
public function getId()
{
return $this->container['id'];
}
/**
* Sets id
* @param string $id consists of source prefix and source specific identifier. These should be URIs uniquely identifying the event, and preferably also well formed http-URLs pointing to more information about the event.
* @return $this
*/
public function setId($id)
{
$this->container['id'] = $id;
return $this;
}
/**
* Gets location
* @return \Metatavu\LinkedEvents\Model\Place
*/
public function getLocation()
{
return $this->container['location'];
}
/**
* Sets location
* @param \Metatavu\LinkedEvents\Model\Place $location
* @return $this
*/
public function setLocation($location)
{
$this->container['location'] = $location;
return $this;
}
/**
* Gets keywords
* @return \Metatavu\LinkedEvents\Model\IdRef[]
*/
public function getKeywords()
{
return $this->container['keywords'];
}
/**
* Sets keywords
* @param \Metatavu\LinkedEvents\Model\IdRef[] $keywords array of keyword uri references
* @return $this
*/
public function setKeywords($keywords)
{
$this->container['keywords'] = $keywords;
return $this;
}
/**
* Gets inLanguage
* @return \Metatavu\LinkedEvents\Model\Language[]
*/
public function getInLanguage()
{
return $this->container['inLanguage'];
}
/**
* Sets inLanguage
* @param \Metatavu\LinkedEvents\Model\Language[] $inLanguage the languages spoken or supported at the event
* @return $this
*/
public function setInLanguage($inLanguage)
{
$this->container['inLanguage'] = $inLanguage;
return $this;
}
/**
* Gets superEvent
* @return \Metatavu\LinkedEvents\Model\IdRef
*/
public function getSuperEvent()
{
return $this->container['superEvent'];
}
/**
* Sets superEvent
* @param \Metatavu\LinkedEvents\Model\IdRef $superEvent references the aggregate event containing this event
* @return $this
*/
public function setSuperEvent($superEvent)
{
$this->container['superEvent'] = $superEvent;
return $this;
}
/**
* Gets superEventType
* @return string
*/
public function getSuperEventType()
{
return $this->container['superEventType'];
}
/**
* Sets superEventType
* @param string $superEventType If the event has sub_events, describes the type of the event. Current options are 'null' and 'recurring', which means a repeating event.
* @return $this
*/
public function setSuperEventType($superEventType)
{
$this->container['superEventType'] = $superEventType;
return $this;
}
/**
* Gets eventStatus
* @return string
*/
public function getEventStatus()
{
return $this->container['eventStatus'];
}
/**
* Sets eventStatus
* @param string $eventStatus As defined in schema.org/Event. Postponed events do not have a date set, rescheduled events have been moved to different date.
* @return $this
*/
public function setEventStatus($eventStatus)
{
$this->container['eventStatus'] = $eventStatus;
return $this;
}
/**
* Gets publicationStatus
* @return string
*/
public function getPublicationStatus()
{
return $this->container['publicationStatus'];
}
/**
* Sets publicationStatus
* @param string $publicationStatus Only available in POST/PUT. Specifies whether the event should be published in the API ('public') or not ('draft').
* @return $this
*/
public function setPublicationStatus($publicationStatus)
{
$this->container['publicationStatus'] = $publicationStatus;
return $this;
}
/**
* Gets externalLinks
* @return \Metatavu\LinkedEvents\Model\Eventlink[]
*/
public function getExternalLinks()
{
return $this->container['externalLinks'];
}
/**
* Sets externalLinks
* @param \Metatavu\LinkedEvents\Model\Eventlink[] $externalLinks See external link definition
* @return $this
*/
public function setExternalLinks($externalLinks)
{
$this->container['externalLinks'] = $externalLinks;
return $this;
}
/**
* Gets offers
* @return \Metatavu\LinkedEvents\Model\Offer[]
*/
public function getOffers()
{
return $this->container['offers'];
}
/**
* Sets offers
* @param \Metatavu\LinkedEvents\Model\Offer[] $offers See offer definition
* @return $this
*/
public function setOffers($offers)
{
$this->container['offers'] = $offers;
return $this;
}
/**
* Gets subEvents
* @return \Metatavu\LinkedEvents\Model\IdRef[]
*/
public function getSubEvents()
{
return $this->container['subEvents'];
}
/**
* Sets subEvents
* @param \Metatavu\LinkedEvents\Model\IdRef[] $subEvents for aggregate events this contains references to all sub events. Usually this means that the sub events are part of series. The field 'super_event_type' tells the type of the aggregate event.
* @return $this
*/
public function setSubEvents($subEvents)
{
$this->container['subEvents'] = $subEvents;
return $this;
}
/**
* Gets customData
* @return object
*/
public function getCustomData()
{
return $this->container['customData'];
}
/**
* Sets customData
* @param object $customData Key value field for custom data. FIXME: is there 6Aika-wide use case for this?
* @return $this
*/
public function setCustomData($customData)
{
$this->container['customData'] = $customData;
return $this;
}
/**
* Gets name
* @return \Metatavu\LinkedEvents\Model\EventName
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
* @param \Metatavu\LinkedEvents\Model\EventName $name
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets images
* @return \Metatavu\LinkedEvents\Model\Image[]
*/
public function getImages()
{
return $this->container['images'];
}
/**
* Sets images
* @param \Metatavu\LinkedEvents\Model\Image[] $images
* @return $this
*/
public function setImages($images)
{
$this->container['images'] = $images;
return $this;
}
/**
* Gets createdTime
* @return \DateTime
*/
public function getCreatedTime()
{
return $this->container['createdTime'];
}
/**
* Sets createdTime
* @param \DateTime $createdTime Creation time for the event entry.
* @return $this
*/
public function setCreatedTime($createdTime)
{
$this->container['createdTime'] = $createdTime;
return $this;
}
/**
* Gets lastModifiedTime
* @return \DateTime
*/
public function getLastModifiedTime()
{
return $this->container['lastModifiedTime'];
}
/**
* Sets lastModifiedTime
* @param \DateTime $lastModifiedTime Time this event was modified in the datastore behind the API (not necessarily in the originating system)
* @return $this
*/
public function setLastModifiedTime($lastModifiedTime)
{
$this->container['lastModifiedTime'] = $lastModifiedTime;
return $this;
}
/**
* Gets infoUrl
* @return \Metatavu\LinkedEvents\Model\EventInfoUrl
*/
public function getInfoUrl()
{
return $this->container['infoUrl'];
}
/**
* Sets infoUrl
* @param \Metatavu\LinkedEvents\Model\EventInfoUrl $infoUrl
* @return $this
*/
public function setInfoUrl($infoUrl)
{
$this->container['infoUrl'] = $infoUrl;
return $this;
}
/**
* Gets description
* @return object
*/
public function getDescription()
{
return $this->container['description'];
}
/**
* Sets description
* @param object $description Description for the event, several chapters(FIXME, verify)
* @return $this
*/
public function setDescription($description)
{
$this->container['description'] = $description;
return $this;
}
/**
* Gets shortDescription
* @return object
*/
public function getShortDescription()
{
return $this->container['shortDescription'];
}
/**
* Sets shortDescription
* @param object $shortDescription Short description for the event, recommended limit 140 characters
* @return $this
*/
public function setShortDescription($shortDescription)
{
$this->container['shortDescription'] = $shortDescription;
return $this;
}
/**
* Gets context
* @return string
*/
public function getContext()
{
return $this->container['context'];
}
/**
* Sets context
* @param string $context
* @return $this
*/
public function setContext($context)
{
$this->container['context'] = $context;
return $this;
}
/**
* Gets type
* @return string
*/
public function getType()
{
return $this->container['type'];
}
/**
* Sets type
* @param string $type
* @return $this
*/
public function setType($type)
{
$this->container['type'] = $type;
return $this;
}
/**
* Gets datePublished
* @return \DateTime
*/
public function getDatePublished()
{
return $this->container['datePublished'];
}
/**
* Sets datePublished
* @param \DateTime $datePublished Date this event is free to be published
* @return $this
*/
public function setDatePublished($datePublished)
{
$this->container['datePublished'] = $datePublished;
return $this;
}
/**
* Gets provider
* @return object
*/
public function getProvider()
{
return $this->container['provider'];
}
/**
* Sets provider
* @param object $provider organization responsible for the practical implementation of the event
* @return $this
*/
public function setProvider($provider)
{
$this->container['provider'] = $provider;
return $this;
}
/**
* Gets locationExtraInfo
* @return object
*/
public function getLocationExtraInfo()
{
return $this->container['locationExtraInfo'];
}
/**
* Sets locationExtraInfo
* @param object $locationExtraInfo Unstructured extra info about location (like \"eastern door of railway station\")
* @return $this
*/
public function setLocationExtraInfo($locationExtraInfo)
{
$this->container['locationExtraInfo'] = $locationExtraInfo;
return $this;
}
/**
* Gets startTime
* @return \DateTime
*/
public function getStartTime()
{
return $this->container['startTime'];
}
/**
* Sets startTime
* @param \DateTime $startTime Time the event will start
* @return $this
*/
public function setStartTime($startTime)
{
$this->container['startTime'] = $startTime;
return $this;
}
/**
* Gets endTime
* @return \DateTime
*/
public function getEndTime()
{
return $this->container['endTime'];
}
/**
* Sets endTime
* @param \DateTime $endTime Time the event will end
* @return $this
*/
public function setEndTime($endTime)
{
$this->container['endTime'] = $endTime;
return $this;
}
/**
* Gets hasStartTime
* @return bool
*/
public function getHasStartTime()
{
return $this->container['hasStartTime'];
}
/**
* Sets hasStartTime
* @param bool $hasStartTime
* @return $this
*/
public function setHasStartTime($hasStartTime)
{
$this->container['hasStartTime'] = $hasStartTime;
return $this;
}
/**
* Gets hasEndTime
* @return bool
*/
public function getHasEndTime()
{
return $this->container['hasEndTime'];
}
/**
* Sets hasEndTime
* @param bool $hasEndTime
* @return $this
*/
public function setHasEndTime($hasEndTime)
{
$this->container['hasEndTime'] = $hasEndTime;
return $this;
}
/**
* Gets audience
* @return \Metatavu\LinkedEvents\Model\Keyword[]
*/
public function getAudience()
{
return $this->container['audience'];
}
/**
* Sets audience
* @param \Metatavu\LinkedEvents\Model\Keyword[] $audience
* @return $this
*/
public function setAudience($audience)
{
$this->container['audience'] = $audience;
return $this;
}
/**
* Gets dataSource
* @return string
*/
public function getDataSource()
{
return $this->container['dataSource'];
}
/**
* Sets dataSource
* @param string $dataSource Unique identifier (URI)for the system from which this event came from, preferably URL with more information about the system and its policies