line = $record->line; $this->name = $record->name; $this->type = 'TXT'; $this->class = $record->class; $this->ttl = $record->ttl; $this->rdlength = $record->rdlength; $this->rdata = new OPRecordAdapterType(); $this->rdata->txtdata = str_replace('"', "", htmlspecialchars_decode($record->rdata->txtdata)); $this->absoluteName = $record->absoluteName; $this->customData = $record->customData; } public function toDnsManagerRecord($record) { $templateData = [ 'name' => $record['name'], 'type' => $record['type'], 'ttl' => $record['ttl'], 'txtdata' => str_replace('"', "", $record['value']), ]; return Record::tryToCreateFromArray($templateData); } }