|
@@ 213-224 (lines=12) @@
|
| 210 |
|
/** |
| 211 |
|
* @param AddressUpdated $addressUpdated |
| 212 |
|
*/ |
| 213 |
|
private function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 214 |
|
{ |
| 215 |
|
$organizerId = $addressUpdated->getOrganizerId(); |
| 216 |
|
$address = $addressUpdated->getAddress(); |
| 217 |
|
|
| 218 |
|
$document = $this->repository->get($organizerId); |
| 219 |
|
|
| 220 |
|
$jsonLD = $document->getBody(); |
| 221 |
|
$jsonLD->address = $address->toJsonLd(); |
| 222 |
|
|
| 223 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
/** |
| 227 |
|
* @param ContactPointUpdated $contactPointUpdated |
|
@@ 229-240 (lines=12) @@
|
| 226 |
|
/** |
| 227 |
|
* @param ContactPointUpdated $contactPointUpdated |
| 228 |
|
*/ |
| 229 |
|
private function applyContactPointUpdated(ContactPointUpdated $contactPointUpdated) |
| 230 |
|
{ |
| 231 |
|
$organizerId = $contactPointUpdated->getOrganizerId(); |
| 232 |
|
$contactPoint = $contactPointUpdated->getContactPoint(); |
| 233 |
|
|
| 234 |
|
$document = $this->repository->get($organizerId); |
| 235 |
|
|
| 236 |
|
$jsonLD = $document->getBody(); |
| 237 |
|
$jsonLD->contactPoint = $contactPoint->toJsonLd(); |
| 238 |
|
|
| 239 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
/** |
| 243 |
|
* @param OrganizerUpdatedFromUDB2 $organizerUpdatedFromUDB2 |