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.

DnsCryptokeysDbo.php 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /**
  3. * AUTO GENERATED BY LUTICATE GENERATOR
  4. * ANY CHANGES WILL BE OVERWRITTEN
  5. */
  6. namespace App\Http\DBO;
  7. use Luticate\Utils\LuDbo;
  8. class DnsCryptokeysDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "DomainId" => $this->_domainId,
  14. "Flags" => $this->_flags,
  15. "Active" => $this->_active,
  16. "Content" => $this->_content
  17. );
  18. }
  19. public static function jsonDeserialize($json)
  20. {
  21. $dbo = new DnsCryptokeysDbo();
  22. if (isset($json["Id"])) {
  23. $dbo->setId($json["Id"]);
  24. }
  25. if (isset($json["DomainId"])) {
  26. $dbo->setDomainId($json["DomainId"]);
  27. }
  28. if (isset($json["Flags"])) {
  29. $dbo->setFlags($json["Flags"]);
  30. }
  31. if (isset($json["Active"])) {
  32. $dbo->setActive($json["Active"]);
  33. }
  34. if (isset($json["Content"])) {
  35. $dbo->setContent($json["Content"]);
  36. }
  37. return $dbo;
  38. }
  39. public static function generateSample()
  40. {
  41. $dbo = new DnsCryptokeysDbo();
  42. $dbo->setId(42);
  43. $dbo->setDomainId(42);
  44. $dbo->setFlags(42);
  45. $dbo->setActive(true);
  46. $dbo->setContent("sample string");
  47. return $dbo;
  48. }
  49. /**
  50. * @var integer
  51. */
  52. protected $_id;
  53. public function getId()
  54. {
  55. return $this->_id;
  56. }
  57. public function setId($value)
  58. {
  59. $this->_id = $value;
  60. }
  61. /**
  62. * @var integer
  63. */
  64. protected $_domainId;
  65. public function getDomainId()
  66. {
  67. return $this->_domainId;
  68. }
  69. public function setDomainId($value)
  70. {
  71. $this->_domainId = $value;
  72. }
  73. /**
  74. * @var integer
  75. */
  76. protected $_flags;
  77. public function getFlags()
  78. {
  79. return $this->_flags;
  80. }
  81. public function setFlags($value)
  82. {
  83. $this->_flags = $value;
  84. }
  85. /**
  86. * @var boolean
  87. */
  88. protected $_active;
  89. public function getActive()
  90. {
  91. return $this->_active;
  92. }
  93. public function setActive($value)
  94. {
  95. $this->_active = $value;
  96. }
  97. /**
  98. * @var text
  99. */
  100. protected $_content;
  101. public function getContent()
  102. {
  103. return $this->_content;
  104. }
  105. public function setContent($value)
  106. {
  107. $this->_content = $value;
  108. }
  109. }