src/Event/ReadModel/JSONLD/EventLDProjector.php
protected function applyEventCdbXmlFromUDB2(
        $eventId,
        $cdbXmlNamespaceUri,
        $cdbXml
    ) {
        $document = $this->newDocument($eventId);

        $eventLd = $this->projectEventCdbXmlToObject(
            $document->getBody(),
            $eventId,
            $cdbXmlNamespaceUri,
            $cdbXml
        );

        return $document->withBody($eventLd);
    }
protected function applyEventCdbXmlFromUDB2(
        $eventId,
        $cdbXmlNamespaceUri,
        $cdbXml
    ) {
        $document = $this->newDocument($eventId);

        $eventLd = $this->projectEventCdbXmlToObject(
            $document->getBody(),
            $eventId,
            $cdbXmlNamespaceUri,
            $cdbXml
        );

        return $document->withBody($eventLd);
    }
protected function applyEventCdbXmlFromUDB2 ( $ eventId , $ cdbXmlNamespaceUri , $ cdbXml ) { $ document = $ this -> newDocument ( $ eventId ) ; $ eventLd = $ this -> projectEventCdbXmlToObject ( $ document -> getBody ( ) , $ eventId , $ cdbXmlNamespaceUri , $ cdbXml ) ; return $ document -> withBody ( $ eventLd ) ; }
Helper function to save a JSON-LD document from cdbxml coming from UDB2.

@param string $eventId
@param string $cdbXmlNamespaceUri
@param string $cdbXml
@return JsonDocument
Helper function to save a JSON - LD document from cdbxml coming from UDB2 .