| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function get_document() { |
||
| 43 | $document = parent::get_document(); |
||
| 44 | |||
| 45 | // Merchant. |
||
| 46 | $merchant = $this->get_merchant(); |
||
| 47 | |||
| 48 | $document_element = $document->documentElement; |
||
| 49 | |||
| 50 | if ( null !== $document_element ) { |
||
| 51 | $element = self::add_element( $document, $document_element, 'Merchant' ); |
||
| 52 | |||
| 53 | self::add_elements( |
||
| 54 | $document, |
||
| 55 | $element, |
||
| 56 | array( |
||
| 57 | 'merchantID' => $merchant->get_id(), |
||
| 58 | 'subID' => $merchant->get_sub_id(), |
||
| 59 | ) |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | |||
| 63 | // Return. |
||
| 64 | return $document; |
||
| 65 | } |
||
| 67 |