| @@ 196-203 (lines=8) @@ | ||
| 193 | return null; |
|
| 194 | } |
|
| 195 | ||
| 196 | protected function serializeContents() |
|
| 197 | { |
|
| 198 | return $this->serializeOptionalXmlEncodedValue('CustomizationId', $this->getCustomizationId()) |
|
| 199 | . $this->getCustomizationInstructions()->serialize() |
|
| 200 | . (!is_null($this->getExtendedPrice()) ? $this->getExtendedPrice()->setRootNodeName('ExtendedPrice')->serialize() : '') |
|
| 201 | . "<ItemId>{$this->xmlEncode($this->getItemId())}</ItemId>" |
|
| 202 | . $this->serializeCustomizedItem(); |
|
| 203 | } |
|
| 204 | ||
| 205 | /** |
|
| 206 | * When a customized item id has been provided, return a serialization |
|
| @@ 73-79 (lines=7) @@ | ||
| 70 | */ |
|
| 71 | abstract public function getUpCharge(); |
|
| 72 | ||
| 73 | protected function serializeContents() |
|
| 74 | { |
|
| 75 | return $this->serializeOptionalXmlEncodedValue('CustomizationId', $this->getCustomizationId()) |
|
| 76 | . $this->serializeOptionalXmlEncodedValue('ItemId', $this->getItemId()) |
|
| 77 | . $this->serializeOptionalXmlEncodedValue('ItemDesc', $this->getItemDescription()) |
|
| 78 | . (!is_null($this->getUpCharge()) ? $this->getUpCharge()->setRootNodeName('Upcharge')->serialize() : ''); |
|
| 79 | } |
|
| 80 | ||
| 81 | protected function deserializeExtra($serializedPayload) |
|
| 82 | { |
|