You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DnsDomainmetadataModel.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * AUTO GENERATED BY LUTICATE GENERATOR
  4. * ANY CHANGES WILL BE OVERWRITTEN
  5. * DO NOT DIRECTLY USE THIS FILE
  6. * USE DnsDomainmetadata.php
  7. * TO MAKE YOUR CHANGES AND DATABASE ACCESS
  8. */
  9. namespace App\Http\DataAccess\Models;
  10. use Luticate\Utils\LuModel;
  11. use App\Http\DBO\DnsDomainmetadataDbo;
  12. class DnsDomainmetadataModel extends LuModel
  13. {
  14. function __construct()
  15. {
  16. parent::__construct();
  17. $this->timestamps = false;
  18. }
  19. public function toDbo()
  20. {
  21. $dbo = new DnsDomainmetadataDbo();
  22. $dbo->setId($this->id);
  23. $dbo->setDomainId($this->domain_id);
  24. $dbo->setKind($this->kind);
  25. $dbo->setContent($this->content);
  26. return $dbo;
  27. }
  28. /**
  29. * @param $dbo DnsDomainmetadataDbo
  30. * @param $model LuModel|null
  31. * @return DnsDomainmetadata
  32. */
  33. public function fromDbo($dbo, $model = null)
  34. {
  35. if (is_null($model))
  36. $model = new DnsDomainmetadata();
  37. $model->id = $dbo->getId();
  38. $model->domain_id = $dbo->getDomainId();
  39. $model->kind = $dbo->getKind();
  40. $model->content = $dbo->getContent();
  41. return $model;
  42. }
  43. }