src/Offer/ReadModel/JSONLD/OfferLDProjector.php
protected function applyContactPointUpdated(AbstractContactPointUpdated $contactPointUpdated)
    {
        $document = $this->loadDocumentFromRepository($contactPointUpdated);

        $offerLd = $document->getBody();
        $offerLd->contactPoint = $contactPointUpdated->getContactPoint()->toJsonLd();

        return $document->withBody($offerLd);
    }
protected function applyContactPointUpdated(AbstractContactPointUpdated $contactPointUpdated)
    {
        $document = $this->loadDocumentFromRepository($contactPointUpdated);

        $offerLd = $document->getBody();
        $offerLd->contactPoint = $contactPointUpdated->getContactPoint()->toJsonLd();

        return $document->withBody($offerLd);
    }
protected function applyContactPointUpdated ( AbstractContactPointUpdated $ contactPointUpdated ) { $ document = $ this -> loadDocumentFromRepository ( $ contactPointUpdated ) ; $ offerLd = $ document -> getBody ( ) ; $ offerLd -> contactPoint = $ contactPointUpdated -> getContactPoint ( ) -> toJsonLd ( ) ; return $ document -> withBody ( $ offerLd ) ; }
Apply the contact point updated event to the offer repository.
@param AbstractContactPointUpdated $contactPointUpdated
@return JsonDocument
Apply the contact point updated event to the offer repository .