src/Offer/ReadModel/JSONLD/OfferLDProjector.php
protected function applyOrganizerUpdated(AbstractOrganizerUpdated $organizerUpdated)
    {
        $document = $this->loadDocumentFromRepository($organizerUpdated);

        $offerLd = $document->getBody();

        $offerLd->organizer = array(
                '@type' => 'Organizer',
            ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId());

        return $document->withBody($offerLd);
    }
protected function applyOrganizerUpdated(AbstractOrganizerUpdated $organizerUpdated)
    {
        $document = $this->loadDocumentFromRepository($organizerUpdated);

        $offerLd = $document->getBody();

        $offerLd->organizer = array(
                '@type' => 'Organizer',
            ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId());

        return $document->withBody($offerLd);
    }
protected function applyOrganizerUpdated ( AbstractOrganizerUpdated $ organizerUpdated ) { $ document = $ this -> loadDocumentFromRepository ( $ organizerUpdated ) ; $ offerLd = $ document -> getBody ( ) ; $ offerLd -> organizer = array ( '@type' => 'Organizer' , ) + ( array ) $ this -> organizerJSONLD ( $ organizerUpdated -> getOrganizerId ( ) ) ; return $ document -> withBody ( $ offerLd ) ; }
Apply the organizer updated event to the offer repository.
@param AbstractOrganizerUpdated $organizerUpdated
@return JsonDocument
Apply the organizer updated event to the offer repository .