Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function toNode(DOMDocument $document = null) |
||
32 | { |
||
33 | if (null === $document) { |
||
34 | $document = new DOMDocument(); |
||
35 | } |
||
36 | |||
37 | $node = $document->createElement('AccessPointCOD'); |
||
38 | |||
39 | $node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
||
40 | $node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
||
41 | |||
42 | return $node; |
||
43 | } |
||
44 | |||
78 |