diff --git a/src/ValueObjects/Event.php b/src/ValueObjects/Event.php index cdb17bc..bccbee1 100644 --- a/src/ValueObjects/Event.php +++ b/src/ValueObjects/Event.php @@ -35,6 +35,18 @@ final class Event extends Offer */ private $subEvents = []; + /** + * @var string + * @Type("string") + */ + private $attendanceMode = 'offline'; + + /** + * @var string|null + * @Type("string") + */ + private $onlineUrl; + public function getLocation(): ?Place { return $this->location; @@ -80,4 +92,24 @@ public function setBookingInfo(BookingInfo $bookingInfo): void { $this->bookingInfo = $bookingInfo; } + + public function getAttendanceMode(): string + { + return $this->attendanceMode; + } + + public function setAttendanceMode(string $attendanceMode): void + { + $this->attendanceMode = $attendanceMode; + } + + public function getOnlineUrl(): ?string + { + return $this->onlineUrl; + } + + public function setOnlineUrl(?string $onlineUrl): void + { + $this->onlineUrl = $onlineUrl; + } } diff --git a/test/Serializer/SerializerTest.php b/test/Serializer/SerializerTest.php index 403ef73..55a366f 100644 --- a/test/Serializer/SerializerTest.php +++ b/test/Serializer/SerializerTest.php @@ -146,6 +146,9 @@ public function testDeserializeMethodForResultsWithEmbedAndFacets(): void ) ); + $event->setAttendanceMode('mixed'); + $event->setOnlineUrl('https://www.livestream.be/'); + $subEvent1 = new Event(); $subEvent1->setStatus(new Status('Available')); $subEvent1->setStartDate(new \DateTime('2021-01-21T23:00:00+00:00')); diff --git a/test/Serializer/data/search-with-embed-and-facets.json b/test/Serializer/data/search-with-embed-and-facets.json index abc07de..0a00da7 100644 --- a/test/Serializer/data/search-with-embed-and-facets.json +++ b/test/Serializer/data/search-with-embed-and-facets.json @@ -70,6 +70,8 @@ "calendarType": "multiple", "startDate": "2021-01-21T23:00:00+00:00", "endDate": "2021-03-04T22:59:59+00:00", + "attendanceMode": "mixed", + "onlineUrl": "https://www.livestream.be/", "status": { "type": "Available", "reason": {