CAAAdapter.php 870 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace MGModule\DNSManager2\mgLibs\custom\dns\submodules\cPanel;
  3. use MGModule\DNSManager2\mgLibs\custom\dns\record\Record;
  4. class CAAAdapter extends Record
  5. {
  6. /**
  7. * CAAAdapter constructor.
  8. * @param Record $record
  9. */
  10. public function __construct( Record $record)
  11. {
  12. $this->type = 'CAA';
  13. $this->name = $record->name;
  14. $this->absoluteName = $record->absoluteName;
  15. $this->ttl = $record->ttl;
  16. $this->class = $record->class;
  17. $this->line = $record->line;
  18. $this->customData = $record->customData;
  19. $this->rdlength = $record->rdlength;
  20. $this->rdata = new CpanelRecordAdapterType();
  21. $this->rdata->value = $record->rdata->target;
  22. $this->rdata->flag = $record->rdata->flag;
  23. $this->rdata->tag = $record->rdata->tag;
  24. }
  25. }