| @@ 413-426 (lines=14) @@ | ||
| 410 | return $this; |
|
| 411 | } |
|
| 412 | ||
| 413 | protected function getRootAttributes() |
|
| 414 | { |
|
| 415 | $hasChainedLines = $this->getHasChainedLines(); |
|
| 416 | $hasDerivedChild = $this->getHasDerivedChild(); |
|
| 417 | $chainedFromOrderHeaderKey = $this->getChainedFromOrderHeaderKey(); |
|
| 418 | $derivedFromOrderHeaderKey = $this->getDerivedFromOrderHeaderKey(); |
|
| 419 | return array_merge( |
|
| 420 | parent::getRootAttributes(), |
|
| 421 | !empty($hasChainedLines) ? ['hasChainedLines' => $hasChainedLines] : [], |
|
| 422 | !empty($hasDerivedChild) ? ['hasDerivedChild' => $hasDerivedChild] : [], |
|
| 423 | $chainedFromOrderHeaderKey ? ['chainedFromOrderHeaderKey' => $chainedFromOrderHeaderKey] : [], |
|
| 424 | $derivedFromOrderHeaderKey ? ['derivedFromOrderHeaderKey' => $derivedFromOrderHeaderKey] : [] |
|
| 425 | ); |
|
| 426 | } |
|
| 427 | ||
| 428 | protected function serializeContents() |
|
| 429 | { |
|
| @@ 702-714 (lines=13) @@ | ||
| 699 | /** |
|
| 700 | * @see TPayload::getRootAttributes() |
|
| 701 | */ |
|
| 702 | protected function getRootAttributes() |
|
| 703 | { |
|
| 704 | $customerOrderId = $this->getCustomerOrderId(); |
|
| 705 | $levelOfService = $this->getLevelOfService(); |
|
| 706 | $hasChainedLines = $this->getHasChainedLines(); |
|
| 707 | $hasDerivedChild = $this->getHasDerivedChild(); |
|
| 708 | return array_merge( |
|
| 709 | $customerOrderId ? ['customerOrderId' => $customerOrderId] : [], |
|
| 710 | $levelOfService ? ['levelOfService' => $levelOfService] : [], |
|
| 711 | !empty($hasChainedLines) ? ['hasChainedLines' => $hasChainedLines] : [], |
|
| 712 | !empty($hasDerivedChild) ? ['hasDerivedChild' => $hasDerivedChild] : [] |
|
| 713 | ); |
|
| 714 | } |
|
| 715 | ||
| 716 | /** |
|
| 717 | * Serialize the OrderSource XML node. |
|