src/Offer/ReadModel/JSONLD/OfferLDProjector.php
protected function applyTypicalAgeRangeUpdated(
        AbstractTypicalAgeRangeUpdated $typicalAgeRangeUpdated
    ) {
        $document = $this->loadDocumentFromRepository($typicalAgeRangeUpdated);

        $offerLd = $document->getBody();
        $offerLd->typicalAgeRange = (string) $typicalAgeRangeUpdated->getTypicalAgeRange();

        return $document->withBody($offerLd);
    }
protected function applyTypicalAgeRangeUpdated(
        AbstractTypicalAgeRangeUpdated $typicalAgeRangeUpdated
    ) {
        $document = $this->loadDocumentFromRepository($typicalAgeRangeUpdated);

        $offerLd = $document->getBody();
        $offerLd->typicalAgeRange = (string) $typicalAgeRangeUpdated->getTypicalAgeRange();

        return $document->withBody($offerLd);
    }
protected function applyTypicalAgeRangeUpdated ( AbstractTypicalAgeRangeUpdated $ typicalAgeRangeUpdated ) { $ document = $ this -> loadDocumentFromRepository ( $ typicalAgeRangeUpdated ) ; $ offerLd = $ document -> getBody ( ) ; $ offerLd -> typicalAgeRange = ( string ) $ typicalAgeRangeUpdated -> getTypicalAgeRange ( ) ; return $ document -> withBody ( $ offerLd ) ; }
Apply the typical age range updated event to the offer repository.
@param AbstractTypicalAgeRangeUpdated $typicalAgeRangeUpdated
@return JsonDocument
Apply the typical age range updated event to the offer repository .