|
@@ 317-323 (lines=7) @@
|
| 314 |
|
* @param AddressUpdated $addressUpdated |
| 315 |
|
* @return JsonDocument |
| 316 |
|
*/ |
| 317 |
|
protected function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 318 |
|
{ |
| 319 |
|
$document = $this->loadPlaceDocumentFromRepositoryById($addressUpdated->getPlaceId()); |
| 320 |
|
$jsonLD = $document->getBody(); |
| 321 |
|
$this->setAddress($jsonLD, $addressUpdated->getAddress(), $this->getMainLanguage($jsonLD)); |
| 322 |
|
return $document->withBody($jsonLD); |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
/** |
| 326 |
|
* @param AddressTranslated $addressTranslated |
|
@@ 329-335 (lines=7) @@
|
| 326 |
|
* @param AddressTranslated $addressTranslated |
| 327 |
|
* @return JsonDocument |
| 328 |
|
*/ |
| 329 |
|
protected function applyAddressTranslated(AddressTranslated $addressTranslated) |
| 330 |
|
{ |
| 331 |
|
$document = $this->loadPlaceDocumentFromRepositoryById($addressTranslated->getPlaceId()); |
| 332 |
|
$jsonLD = $document->getBody(); |
| 333 |
|
$this->setAddress($jsonLD, $addressTranslated->getAddress(), $addressTranslated->getLanguage()); |
| 334 |
|
return $document->withBody($jsonLD); |
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
/** |
| 338 |
|
* @param \stdClass $jsonLd |