src/Organizer/OrganizerLDProjector.php 1 location
|
@@ 491-499 (lines=9) @@
|
| 488 |
|
* @param DomainMessage $domainMessage |
| 489 |
|
* @return JsonDocument |
| 490 |
|
*/ |
| 491 |
|
private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage) |
| 492 |
|
{ |
| 493 |
|
$body = $jsonDocument->getBody(); |
| 494 |
|
|
| 495 |
|
$recordedDateTime = RecordedOn::fromDomainMessage($domainMessage); |
| 496 |
|
$body->modified = $recordedDateTime->toString(); |
| 497 |
|
|
| 498 |
|
return $jsonDocument->withBody($body); |
| 499 |
|
} |
| 500 |
|
} |
| 501 |
|
|
src/Offer/ReadModel/JSONLD/OfferLDProjector.php 1 location
|
@@ 1059-1067 (lines=9) @@
|
| 1056 |
|
* @param DomainMessage $domainMessage |
| 1057 |
|
* @return JsonDocument |
| 1058 |
|
*/ |
| 1059 |
|
private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage) |
| 1060 |
|
{ |
| 1061 |
|
$body = $jsonDocument->getBody(); |
| 1062 |
|
|
| 1063 |
|
$recordedDateTime = RecordedOn::fromDomainMessage($domainMessage); |
| 1064 |
|
$body->modified = $recordedDateTime->toString(); |
| 1065 |
|
|
| 1066 |
|
return $jsonDocument->withBody($body); |
| 1067 |
|
} |
| 1068 |
|
} |
| 1069 |
|
|