Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | public function toNode(DOMDocument $document = null) |
||
29 | { |
||
30 | if (null === $document) { |
||
31 | $document = new DOMDocument(); |
||
32 | } |
||
33 | |||
34 | $node = $document->createElement('CustomerClassification'); |
||
35 | $node->appendChild($document->createElement('Code', $this->getCode())); |
||
36 | |||
37 | return $node; |
||
38 | } |
||
39 | |||
60 |