| @@ 328-337 (lines=10) @@ | ||
| 325 | * |
|
| 326 | * @return self |
|
| 327 | */ |
|
| 328 | protected function deserializeGiftPricing(DOMXPath $xpath) |
|
| 329 | { |
|
| 330 | $priceNode = $xpath->query('x:Gifting/x:Gift/x:Pricing')->item(0); |
|
| 331 | if ($priceNode) { |
|
| 332 | $this->setGiftPricing( |
|
| 333 | $this->getEmptyGiftingPriceGroup()->deserialize($priceNode->C14N()) |
|
| 334 | ); |
|
| 335 | } |
|
| 336 | return $this; |
|
| 337 | } |
|
| 338 | ||
| 339 | /** |
|
| 340 | * Serialize an optional element containing a string. The value will be |
|
| @@ 86-95 (lines=10) @@ | ||
| 83 | * |
|
| 84 | * @return self |
|
| 85 | */ |
|
| 86 | protected function deserializeGiftPricing(DOMXPath $xpath) |
|
| 87 | { |
|
| 88 | $priceNode = $xpath->query('x:Gifting/x:Pricing')->item(0); |
|
| 89 | if ($priceNode) { |
|
| 90 | $this->setGiftPricing( |
|
| 91 | $this->getEmptyGiftPriceGroup()->deserialize($priceNode->C14N()) |
|
| 92 | ); |
|
| 93 | } |
|
| 94 | return $this; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @return IAbstractPriceGroup |
|