@@ 218-225 (lines=8) @@ | ||
215 | return $itemId ? "<Item ref='{$this->xmlEncode($itemId)}'/>" : ''; |
|
216 | } |
|
217 | ||
218 | protected function deserializeExtra($serializedPayload) |
|
219 | { |
|
220 | $xpath = $this->getPayloadAsXPath($serializedPayload); |
|
221 | $priceNode = $xpath->query('x:ExtendedPrice')->item(0); |
|
222 | if ($priceNode) { |
|
223 | $this->extendedPrice = $this->getEmptyExtendedPrice()->deserialize($priceNode->C14N()); |
|
224 | } |
|
225 | } |
|
226 | ||
227 | protected function getRootNodeName() |
|
228 | { |
@@ 81-88 (lines=8) @@ | ||
78 | . (!is_null($this->getUpCharge()) ? $this->getUpCharge()->setRootNodeName('Upcharge')->serialize() : ''); |
|
79 | } |
|
80 | ||
81 | protected function deserializeExtra($serializedPayload) |
|
82 | { |
|
83 | $xpath = $this->getPayloadAsXPath($serializedPayload); |
|
84 | $priceNode = $xpath->query('x:Upcharge')->item(0); |
|
85 | if ($priceNode) { |
|
86 | $this->upCharge = $this->getEmptyPriceGroup()->deserialize($priceNode->C14N()); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | protected function getRootAttributes() |
|
91 | { |