Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
33 | 1 | public function toNode(DOMDocument $document = null) |
|
34 | { |
||
35 | 1 | if (null === $document) { |
|
36 | $document = new DOMDocument(); |
||
37 | } |
||
38 | |||
39 | 1 | $node = $document->createElement('UPSFiled'); |
|
40 | |||
41 | 1 | $poa = $this->getPOA(); |
|
42 | 1 | if (isset($poa)) { |
|
43 | 1 | $node->appendChild($poa->toNode($document)); |
|
44 | 1 | } |
|
45 | |||
46 | 1 | return $node; |
|
47 | } |
||
48 | |||
67 |