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