src/Offer/ReadModel/JSONLD/OfferLDProjector.php
protected function applyBookingInfoUpdated(AbstractBookingInfoUpdated $bookingInfoUpdated)
    {
        $document = $this->loadDocumentFromRepository($bookingInfoUpdated);

        $offerLd = $document->getBody();

        $offerLd->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd();

        return $document->withBody($offerLd);
    }
protected function applyBookingInfoUpdated(AbstractBookingInfoUpdated $bookingInfoUpdated)
    {
        $document = $this->loadDocumentFromRepository($bookingInfoUpdated);

        $offerLd = $document->getBody();

        $offerLd->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd();

        return $document->withBody($offerLd);
    }
protected function applyBookingInfoUpdated ( AbstractBookingInfoUpdated $ bookingInfoUpdated ) { $ document = $ this -> loadDocumentFromRepository ( $ bookingInfoUpdated ) ; $ offerLd = $ document -> getBody ( ) ; $ offerLd -> bookingInfo = $ bookingInfoUpdated -> getBookingInfo ( ) -> toJsonLd ( ) ; return $ document -> withBody ( $ offerLd ) ; }
Apply the booking info updated event to the offer repository.
@param AbstractBookingInfoUpdated $bookingInfoUpdated
@return JsonDocument
Apply the booking info updated event to the offer repository .