protected function recordToElement(DOMDocument $doc, array $record, string $field_encoder): DOMElement
    {
        $node = $doc->createElement($this->record_name);
        foreach ($record as $node_name => $value) {
            $item = $this->$field_encoder($doc, (string) $value, $node_name);
            $node->appendChild($item);
        }

        return $node;
    }
protected function recordToElement(DOMDocument $doc, array $record, string $field_encoder): DOMElement
    {
        $node = $doc->createElement($this->record_name);
        foreach ($record as $node_name => $value) {
            $item = $this->$field_encoder($doc, (string) $value, $node_name);
            $node->appendChild($item);
        }

        return $node;
    }
protected function recordToElement ( DOMDocument $ doc , array $ record , string $ field_encoder ) : DOMElement { $ node = $ doc -> createElement ( $ this -> record_name ) ; foreach ( $ record as $ node_name => $ value ) { $ item = $ this -> $ field_encoder ( $ doc , ( string ) $ value , $ node_name ) ; $ node -> appendChild ( $ item ) ; } return $ node ; }
Convert a CSV record into a DOMElement.
Convert a CSV record into a DOMElement .