Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.032 |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
36 | 2 | public function asDom(DOMDocument $doc, PaymentInformation $paymentInformation) |
|
37 | { |
||
38 | 2 | $root = $this->buildHeader($doc, $paymentInformation, 'CH02'); |
|
39 | |||
40 | 2 | $root->appendChild($this->buildCreditor($doc)); |
|
41 | |||
42 | 2 | $creditorAccount = $doc->createElement('CdtrAcct'); |
|
43 | 2 | $creditorAccount->appendChild($this->creditorAccount->asDom($doc)); |
|
44 | 2 | $root->appendChild($creditorAccount); |
|
45 | |||
46 | 2 | if ($this->hasRemittanceInformation()) { |
|
47 | $root->appendChild($this->buildRemittanceInformation($doc)); |
||
48 | } |
||
49 | |||
50 | 2 | return $root; |
|
51 | } |
||
52 | } |
||
53 |