|
@@ 302-308 (lines=7) @@
|
| 299 |
|
/** |
| 300 |
|
* @param AddressUpdated $addressUpdated |
| 301 |
|
*/ |
| 302 |
|
protected function applyAddressUpdated(AddressUpdated $addressUpdated) |
| 303 |
|
{ |
| 304 |
|
$document = $this->loadPlaceDocumentFromRepository($addressUpdated); |
| 305 |
|
$jsonLD = $document->getBody(); |
| 306 |
|
$this->setAddress($jsonLD, $addressUpdated->getAddress(), $this->getMainLanguage($jsonLD)); |
| 307 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
/** |
| 311 |
|
* @param AddressTranslated $addressTranslated |
|
@@ 313-319 (lines=7) @@
|
| 310 |
|
/** |
| 311 |
|
* @param AddressTranslated $addressTranslated |
| 312 |
|
*/ |
| 313 |
|
protected function applyAddressTranslated(AddressTranslated $addressTranslated) |
| 314 |
|
{ |
| 315 |
|
$document = $this->loadPlaceDocumentFromRepository($addressTranslated); |
| 316 |
|
$jsonLD = $document->getBody(); |
| 317 |
|
$this->setAddress($jsonLD, $addressTranslated->getAddress(), $addressTranslated->getLanguage()); |
| 318 |
|
$this->repository->save($document->withBody($jsonLD)); |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
/** |
| 322 |
|
* @param \stdClass $jsonLd |