| @@ 83-91 (lines=9) @@ | ||
| 80 | /** |
|
| 81 | * {@inheritdoc} |
|
| 82 | */ |
|
| 83 | public function serialize() |
|
| 84 | { |
|
| 85 | return [ |
|
| 86 | 'streetAddress' => $this->streetAddress->toNative(), |
|
| 87 | 'postalCode' => $this->postalCode->toNative(), |
|
| 88 | 'addressLocality' => $this->locality->toNative(), |
|
| 89 | 'addressCountry' => $this->countryCode, |
|
| 90 | ]; |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * {@inheritdoc} |
|
| @@ 109-117 (lines=9) @@ | ||
| 106 | /** |
|
| 107 | * {@inheritdoc} |
|
| 108 | */ |
|
| 109 | public function toJsonLd() |
|
| 110 | { |
|
| 111 | return [ |
|
| 112 | 'addressCountry' => $this->countryCode, |
|
| 113 | 'addressLocality' => $this->locality->toNative(), |
|
| 114 | 'postalCode' => $this->postalCode->toNative(), |
|
| 115 | 'streetAddress' => $this->streetAddress->toNative(), |
|
| 116 | ]; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @param Address $otherAddress |
|