src/Offer/ReadModel/JSONLD/OfferLDProjector.php 1 location
|
@@ 1036-1044 (lines=9) @@
|
| 1033 |
|
* @param DomainMessage $domainMessage |
| 1034 |
|
* @return JsonDocument |
| 1035 |
|
*/ |
| 1036 |
|
private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage) |
| 1037 |
|
{ |
| 1038 |
|
$body = $jsonDocument->getBody(); |
| 1039 |
|
|
| 1040 |
|
$recordedDateTime = RecordedOn::fromDomainMessage($domainMessage); |
| 1041 |
|
$body->modified = $recordedDateTime->toString(); |
| 1042 |
|
|
| 1043 |
|
return $jsonDocument->withBody($body); |
| 1044 |
|
} |
| 1045 |
|
} |
| 1046 |
|
|
src/Organizer/OrganizerLDProjector.php 1 location
|
@@ 550-558 (lines=9) @@
|
| 547 |
|
* @param DomainMessage $domainMessage |
| 548 |
|
* @return JsonDocument |
| 549 |
|
*/ |
| 550 |
|
private function updateModified(JsonDocument $jsonDocument, DomainMessage $domainMessage) |
| 551 |
|
{ |
| 552 |
|
$body = $jsonDocument->getBody(); |
| 553 |
|
|
| 554 |
|
$recordedDateTime = RecordedOn::fromDomainMessage($domainMessage); |
| 555 |
|
$body->modified = $recordedDateTime->toString(); |
| 556 |
|
|
| 557 |
|
return $jsonDocument->withBody($body); |
| 558 |
|
} |
| 559 |
|
} |
| 560 |
|
|