| @@ 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. | |
| @@ 786-796 (lines=11) @@ | ||
| 783 | * Apply the booking info updated event to the event repository. | |
| 784 | * @param BookingInfoUpdated $bookingInfoUpdated | |
| 785 | */ | |
| 786 | protected function applyBookingInfoUpdated(BookingInfoUpdated $bookingInfoUpdated) | |
| 787 |     { | |
| 788 | ||
| 789 | $document = $this->loadDocumentFromRepository($bookingInfoUpdated); | |
| 790 | ||
| 791 | $eventLd = $document->getBody(); | |
| 792 | $eventLd->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd(); | |
| 793 | ||
| 794 | $this->repository->save($document->withBody($eventLd)); | |
| 795 | ||
| 796 | } | |
| 797 | ||
| 798 | /** | |
| 799 | * Apply the imageAdded event to the event repository. | |