src/Entity/ShipperFiled.php
public function toNode(DOMDocument $document = null)
    {
        if (null === $document) {
            $document = new DOMDocument();
        }

        $node = $document->createElement('ShipperFiled');

        $code = $this->getCode();
        if (isset($code)) {
            $node->appendChild($document->createElement('Code', $code));
        }

        $description = $this->getDescription();
        if (isset($description)) {
            $node->appendChild($document->createElement('Description', $description));
        }

        $preDepartureITNNumber = $this->getPreDepartureITNNumber();
        if (isset($code)) {
            $node->appendChild($document->createElement('PreDepartureITNNumber', $preDepartureITNNumber));
        }

        $exemptionLegend = $this->getExemptionLegend();
        if (isset($exemptionLegend)) {
            $node->appendChild($document->createElement('ExemptionLegend', $exemptionLegend));
        }

        return $node;
    }
public function toNode(DOMDocument $document = null)
    {
        if (null === $document) {
            $document = new DOMDocument();
        }

        $node = $document->createElement('ShipperFiled');

        $code = $this->getCode();
        if (isset($code)) {
            $node->appendChild($document->createElement('Code', $code));
        }

        $description = $this->getDescription();
        if (isset($description)) {
            $node->appendChild($document->createElement('Description', $description));
        }

        $preDepartureITNNumber = $this->getPreDepartureITNNumber();
        if (isset($code)) {
            $node->appendChild($document->createElement('PreDepartureITNNumber', $preDepartureITNNumber));
        }

        $exemptionLegend = $this->getExemptionLegend();
        if (isset($exemptionLegend)) {
            $node->appendChild($document->createElement('ExemptionLegend', $exemptionLegend));
        }

        return $node;
    }
@param null|DOMDocument $document

@return DOMElement