protected function recordToElementWithAttribute(
        DOMDocument $doc,
        array $record,
        string $field_encoder,
        int $offset
    ): DOMElement {
        $node = $this->recordToElement($doc, $record, $field_encoder);
        $node->setAttribute($this->offset_attr, (string) $offset);

        return $node;
    }
protected function recordToElementWithAttribute(
        DOMDocument $doc,
        array $record,
        string $field_encoder,
        int $offset
    ): DOMElement {
        $node = $this->recordToElement($doc, $record, $field_encoder);
        $node->setAttribute($this->offset_attr, (string) $offset);

        return $node;
    }
protected function recordToElementWithAttribute ( DOMDocument $ doc , array $ record , string $ field_encoder , int $ offset ) : DOMElement { $ node = $ this -> recordToElement ( $ doc , $ record , $ field_encoder ) ; $ node -> setAttribute ( $ this -> offset_attr , ( string ) $ offset ) ; return $ node ; }
Convert a CSV record into a DOMElement and
adds its offset as DOMElement attribute.
Convert a CSV record into a DOMElement and adds its offset as DOMElement attribute .