src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 246-255 (lines=10) @@
|
| 243 |
|
* @param PlaceDeleted $placeDeleted |
| 244 |
|
* @return null |
| 245 |
|
*/ |
| 246 |
|
protected function applyPlaceDeleted(PlaceDeleted $placeDeleted) |
| 247 |
|
{ |
| 248 |
|
$document = $this->loadDocumentFromRepository($placeDeleted); |
| 249 |
|
|
| 250 |
|
$jsonLD = $document->getBody(); |
| 251 |
|
|
| 252 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 253 |
|
|
| 254 |
|
return $document->withBody($jsonLD); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
/** |
| 258 |
|
* Apply the major info updated command to the projector. |
src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 546-555 (lines=10) @@
|
| 543 |
|
* @param EventDeleted $eventDeleted |
| 544 |
|
* @return null |
| 545 |
|
*/ |
| 546 |
|
protected function applyEventDeleted(EventDeleted $eventDeleted) |
| 547 |
|
{ |
| 548 |
|
$document = $this->loadDocumentFromRepository($eventDeleted); |
| 549 |
|
|
| 550 |
|
$jsonLD = $document->getBody(); |
| 551 |
|
|
| 552 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 553 |
|
|
| 554 |
|
return $document->withBody($jsonLD); |
| 555 |
|
} |
| 556 |
|
|
| 557 |
|
/** |
| 558 |
|
* Apply the major info updated command to the projector. |