| @@ 283-293 (lines=11) @@ | ||
| 280 | * Apply the booking info updated event to the place repository. |
|
| 281 | * @param BookingInfoUpdated $bookingInfoUpdated |
|
| 282 | */ |
|
| 283 | protected function applyBookingInfoUpdated(BookingInfoUpdated $bookingInfoUpdated) |
|
| 284 | { |
|
| 285 | ||
| 286 | $document = $this->loadPlaceDocumentFromRepository($bookingInfoUpdated); |
|
| 287 | ||
| 288 | $placeLD = $document->getBody(); |
|
| 289 | $placeLD->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd(); |
|
| 290 | ||
| 291 | $this->repository->save($document->withBody($placeLD)); |
|
| 292 | ||
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * Apply the typical age range updated event to the place repository. |
|
| @@ 362-371 (lines=10) @@ | ||
| 359 | * Apply the contact point updated event to the place repository. |
|
| 360 | * @param ContactPointUpdated $contactPointUpdated |
|
| 361 | */ |
|
| 362 | protected function applyContactPointUpdated(ContactPointUpdated $contactPointUpdated) |
|
| 363 | { |
|
| 364 | ||
| 365 | $document = $this->loadPlaceDocumentFromRepository($contactPointUpdated); |
|
| 366 | ||
| 367 | $placeLd = $document->getBody(); |
|
| 368 | $placeLd->contactPoint = $contactPointUpdated->getContactPoint()->toJsonLd(); |
|
| 369 | ||
| 370 | $this->repository->save($document->withBody($placeLd)); |
|
| 371 | } |
|
| 372 | ||
| 373 | /** |
|
| 374 | * Apply the facilitiesupdated event to the place repository. |
|
| @@ 756-766 (lines=11) @@ | ||
| 753 | * Apply the booking info updated event to the event repository. |
|
| 754 | * @param BookingInfoUpdated $bookingInfoUpdated |
|
| 755 | */ |
|
| 756 | protected function applyBookingInfoUpdated(BookingInfoUpdated $bookingInfoUpdated) |
|
| 757 | { |
|
| 758 | ||
| 759 | $document = $this->loadDocumentFromRepository($bookingInfoUpdated); |
|
| 760 | ||
| 761 | $eventLd = $document->getBody(); |
|
| 762 | $eventLd->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd(); |
|
| 763 | ||
| 764 | $this->repository->save($document->withBody($eventLd)); |
|
| 765 | ||
| 766 | } |
|
| 767 | ||
| 768 | /** |
|
| 769 | * Apply the imageAdded event to the event repository. |
|