src/Event/ReadModel/JSONLD/EventLDProjector.php
private function UDB3Location($document)
    {
        $location = null;

        if ($document) {
            $item = $document->getBody();
            $location = isset($item->location) ? $item->location : null;
        }

        return $location;
    }
private function UDB3Location($document)
    {
        $location = null;

        if ($document) {
            $item = $document->getBody();
            $location = isset($item->location) ? $item->location : null;
        }

        return $location;
    }
private function UDB3Location ( $ document ) { $ location = null ; if ( $ document ) { $ item = $ document -> getBody ( ) ; $ location = isset ( $ item -> location ) ? $ item -> location : null ; } return $ location ; }
Return the location of an event if it already exists.

@param JsonDocument $document The JsonDocument.

@return array|null
The location
Return the location of an event if it already exists .