Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0625 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 2 | public function toNode(DOMDocument $document = null) |
|
43 | { |
||
44 | 2 | if (null === $document) { |
|
45 | $document = new DOMDocument(); |
||
46 | } |
||
47 | |||
48 | 2 | $node = $document->createElement('PackageWeight'); |
|
49 | 2 | $node->appendChild($document->createElement('Weight', $this->getWeight())); |
|
50 | 2 | $node->appendChild($this->getUnitOfMeasurement()->toNode($document)); |
|
51 | |||
52 | 2 | return $node; |
|
53 | } |
||
54 | |||
97 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.