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.

DnsDomainsDbo.php 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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 DnsDomainsDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "Name" => $this->_name,
  14. "Master" => $this->_master,
  15. "LastCheck" => $this->_lastCheck,
  16. "Type" => $this->_type,
  17. "NotifiedSerial" => $this->_notifiedSerial,
  18. "Account" => $this->_account
  19. );
  20. }
  21. public static function jsonDeserialize($json)
  22. {
  23. $dbo = new DnsDomainsDbo();
  24. if (isset($json["Id"])) {
  25. $dbo->setId($json["Id"]);
  26. }
  27. if (isset($json["Name"])) {
  28. $dbo->setName($json["Name"]);
  29. }
  30. if (isset($json["Master"])) {
  31. $dbo->setMaster($json["Master"]);
  32. }
  33. if (isset($json["LastCheck"])) {
  34. $dbo->setLastCheck($json["LastCheck"]);
  35. }
  36. if (isset($json["Type"])) {
  37. $dbo->setType($json["Type"]);
  38. }
  39. if (isset($json["NotifiedSerial"])) {
  40. $dbo->setNotifiedSerial($json["NotifiedSerial"]);
  41. }
  42. if (isset($json["Account"])) {
  43. $dbo->setAccount($json["Account"]);
  44. }
  45. return $dbo;
  46. }
  47. public static function generateSample()
  48. {
  49. $dbo = new DnsDomainsDbo();
  50. $dbo->setId(42);
  51. $dbo->setName("sample string");
  52. $dbo->setMaster("sample string");
  53. $dbo->setLastCheck(42);
  54. $dbo->setType("sample string");
  55. $dbo->setNotifiedSerial(42);
  56. $dbo->setAccount("sample string");
  57. return $dbo;
  58. }
  59. /**
  60. * @var integer
  61. */
  62. protected $_id;
  63. public function getId()
  64. {
  65. return $this->_id;
  66. }
  67. public function setId($value)
  68. {
  69. $this->_id = $value;
  70. }
  71. /**
  72. * @var string
  73. */
  74. protected $_name;
  75. public function getName()
  76. {
  77. return $this->_name;
  78. }
  79. public function setName($value)
  80. {
  81. $this->_name = $value;
  82. }
  83. /**
  84. * @var string
  85. */
  86. protected $_master;
  87. public function getMaster()
  88. {
  89. return $this->_master;
  90. }
  91. public function setMaster($value)
  92. {
  93. $this->_master = $value;
  94. }
  95. /**
  96. * @var integer
  97. */
  98. protected $_lastCheck;
  99. public function getLastCheck()
  100. {
  101. return $this->_lastCheck;
  102. }
  103. public function setLastCheck($value)
  104. {
  105. $this->_lastCheck = $value;
  106. }
  107. /**
  108. * @var string
  109. */
  110. protected $_type;
  111. public function getType()
  112. {
  113. return $this->_type;
  114. }
  115. public function setType($value)
  116. {
  117. $this->_type = $value;
  118. }
  119. /**
  120. * @var integer
  121. */
  122. protected $_notifiedSerial;
  123. public function getNotifiedSerial()
  124. {
  125. return $this->_notifiedSerial;
  126. }
  127. public function setNotifiedSerial($value)
  128. {
  129. $this->_notifiedSerial = $value;
  130. }
  131. /**
  132. * @var string
  133. */
  134. protected $_account;
  135. public function getAccount()
  136. {
  137. return $this->_account;
  138. }
  139. public function setAccount($value)
  140. {
  141. $this->_account = $value;
  142. }
  143. }