src/Event/ReadModel/JSONLD/EventLDProjector.php 1 location
|
@@ 419-428 (lines=10) @@
|
| 416 |
|
* @param EventDeleted $eventDeleted |
| 417 |
|
* @return null |
| 418 |
|
*/ |
| 419 |
|
protected function applyEventDeleted(EventDeleted $eventDeleted) |
| 420 |
|
{ |
| 421 |
|
$document = $this->loadDocumentFromRepository($eventDeleted); |
| 422 |
|
|
| 423 |
|
$jsonLD = $document->getBody(); |
| 424 |
|
|
| 425 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 426 |
|
|
| 427 |
|
return $document->withBody($jsonLD); |
| 428 |
|
} |
| 429 |
|
|
| 430 |
|
/** |
| 431 |
|
* Apply the major info updated command to the projector. |
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 location
|
@@ 253-262 (lines=10) @@
|
| 250 |
|
* @param PlaceDeleted $placeDeleted |
| 251 |
|
* @return null |
| 252 |
|
*/ |
| 253 |
|
protected function applyPlaceDeleted(PlaceDeleted $placeDeleted) |
| 254 |
|
{ |
| 255 |
|
$document = $this->loadDocumentFromRepository($placeDeleted); |
| 256 |
|
|
| 257 |
|
$jsonLD = $document->getBody(); |
| 258 |
|
|
| 259 |
|
$jsonLD->workflowStatus = WorkflowStatus::DELETED()->getName(); |
| 260 |
|
|
| 261 |
|
return $document->withBody($jsonLD); |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
/** |
| 265 |
|
* Apply the major info updated command to the projector. |