createElement('UnitOfMeasure'); $node->appendChild($document->createElement('UnitCode', $this->getCode())); if ($this->getDescription() !== null) { $node->appendChild($document->createElement('UnitDescription', $this->getDescription())); } return $node; } return new DOMElement('UnitOfMeasure'); } }