Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
27 | public function toNode(DOMDocument $document = null) |
||
28 | { |
||
29 | if (null === $document) { |
||
30 | $document = new DOMDocument(); |
||
31 | } |
||
32 | |||
33 | $node = $document->createElement('QueryRequest'); |
||
34 | |||
35 | if ($this->getShipment() !== null) { |
||
36 | $node->appendChild($this->getShipment()->toNode($document)); |
||
37 | } |
||
38 | $node->appendChild( |
||
39 | $document->createElement( |
||
40 | 'SuppressQuestionIndicator', |
||
41 | ($this->isSuppressQuestionIndicator() ? 'Y' : 'N') |
||
42 | ) |
||
43 | ); |
||
44 | |||
45 | return $node; |
||
46 | } |
||
47 | |||
86 |