|
@@ 311-317 (lines=7) @@
|
| 308 |
|
* @param AddressUpdated $addressUpdated |
| 309 |
|
* @return JsonDocument |
| 310 |
|
*/ |
| 311 |
|
protected function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 312 |
|
{ |
| 313 |
|
$document = $this->loadPlaceDocumentFromRepository($addressUpdated); |
| 314 |
|
$jsonLD = $document->getBody(); |
| 315 |
|
$this->setAddress($jsonLD, $addressUpdated->getAddress(), $this->getMainLanguage($jsonLD)); |
| 316 |
|
return $document->withBody($jsonLD); |
| 317 |
|
} |
| 318 |
|
|
| 319 |
|
/** |
| 320 |
|
* @param AddressTranslated $addressTranslated |
|
@@ 323-329 (lines=7) @@
|
| 320 |
|
* @param AddressTranslated $addressTranslated |
| 321 |
|
* @return JsonDocument |
| 322 |
|
*/ |
| 323 |
|
protected function applyAddressTranslated(AddressTranslated $addressTranslated) |
| 324 |
|
{ |
| 325 |
|
$document = $this->loadPlaceDocumentFromRepository($addressTranslated); |
| 326 |
|
$jsonLD = $document->getBody(); |
| 327 |
|
$this->setAddress($jsonLD, $addressTranslated->getAddress(), $addressTranslated->getLanguage()); |
| 328 |
|
return $document->withBody($jsonLD); |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
/** |
| 332 |
|
* @param \stdClass $jsonLd |