src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 551-560 (lines=10) @@
|
| 548 |
|
* @param EventDeleted $eventDeleted |
| 549 |
|
* @return null |
| 550 |
|
*/ |
| 551 |
|
protected function applyEventDeleted(EventDeleted $eventDeleted) |
| 552 |
|
{ |
| 553 |
|
$document = $this->loadDocumentFromRepository($eventDeleted); |
| 554 |
|
|
| 555 |
|
$jsonLD = $document->getBody(); |
| 556 |
|
|
| 557 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 558 |
|
|
| 559 |
|
return $document->withBody($jsonLD); |
| 560 |
|
} |
| 561 |
|
|
| 562 |
|
/** |
| 563 |
|
* Apply the major info updated command to the projector. |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 259-268 (lines=10) @@
|
| 256 |
|
* @param PlaceDeleted $placeDeleted |
| 257 |
|
* @return null |
| 258 |
|
*/ |
| 259 |
|
protected function applyPlaceDeleted(PlaceDeleted $placeDeleted) |
| 260 |
|
{ |
| 261 |
|
$document = $this->loadDocumentFromRepository($placeDeleted); |
| 262 |
|
|
| 263 |
|
$jsonLD = $document->getBody(); |
| 264 |
|
|
| 265 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 266 |
|
|
| 267 |
|
return $document->withBody($jsonLD); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
/** |
| 271 |
|
* Apply the major info updated command to the projector. |