Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public function toNode(DOMDocument $document = null) |
||
45 | { |
||
46 | if (null === $document) { |
||
47 | $document = new DOMDocument(); |
||
48 | } |
||
49 | |||
50 | $node = $document->createElement('Pickup'); |
||
51 | $node->appendChild($document->createElement('Date', $this->getDate())); |
||
52 | $node->appendChild($document->createElement('Time', $this->getTime())); |
||
53 | |||
54 | return $node; |
||
55 | } |
||
56 | |||
89 |