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.

DnsRecordsDbo.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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 DnsRecordsDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "DomainId" => $this->_domainId,
  14. "Name" => $this->_name,
  15. "Type" => $this->_type,
  16. "Content" => $this->_content,
  17. "Ttl" => $this->_ttl,
  18. "Prio" => $this->_prio,
  19. "ChangeDate" => $this->_changeDate,
  20. "Disabled" => $this->_disabled,
  21. "Ordername" => $this->_ordername,
  22. "Auth" => $this->_auth
  23. );
  24. }
  25. public static function jsonDeserialize($json)
  26. {
  27. $dbo = new DnsRecordsDbo();
  28. if (isset($json["Id"])) {
  29. $dbo->setId($json["Id"]);
  30. }
  31. if (isset($json["DomainId"])) {
  32. $dbo->setDomainId($json["DomainId"]);
  33. }
  34. if (isset($json["Name"])) {
  35. $dbo->setName($json["Name"]);
  36. }
  37. if (isset($json["Type"])) {
  38. $dbo->setType($json["Type"]);
  39. }
  40. if (isset($json["Content"])) {
  41. $dbo->setContent($json["Content"]);
  42. }
  43. if (isset($json["Ttl"])) {
  44. $dbo->setTtl($json["Ttl"]);
  45. }
  46. if (isset($json["Prio"])) {
  47. $dbo->setPrio($json["Prio"]);
  48. }
  49. if (isset($json["ChangeDate"])) {
  50. $dbo->setChangeDate($json["ChangeDate"]);
  51. }
  52. if (isset($json["Disabled"])) {
  53. $dbo->setDisabled($json["Disabled"]);
  54. }
  55. if (isset($json["Ordername"])) {
  56. $dbo->setOrdername($json["Ordername"]);
  57. }
  58. if (isset($json["Auth"])) {
  59. $dbo->setAuth($json["Auth"]);
  60. }
  61. return $dbo;
  62. }
  63. public static function generateSample()
  64. {
  65. $dbo = new DnsRecordsDbo();
  66. $dbo->setId(42);
  67. $dbo->setDomainId(42);
  68. $dbo->setName("sample string");
  69. $dbo->setType("sample string");
  70. $dbo->setContent("sample string");
  71. $dbo->setTtl(42);
  72. $dbo->setPrio(42);
  73. $dbo->setChangeDate(42);
  74. $dbo->setDisabled(true);
  75. $dbo->setOrdername("sample string");
  76. $dbo->setAuth(true);
  77. return $dbo;
  78. }
  79. /**
  80. * @var integer
  81. */
  82. protected $_id;
  83. public function getId()
  84. {
  85. return $this->_id;
  86. }
  87. public function setId($value)
  88. {
  89. $this->_id = $value;
  90. }
  91. /**
  92. * @var integer
  93. */
  94. protected $_domainId;
  95. public function getDomainId()
  96. {
  97. return $this->_domainId;
  98. }
  99. public function setDomainId($value)
  100. {
  101. $this->_domainId = $value;
  102. }
  103. /**
  104. * @var string
  105. */
  106. protected $_name;
  107. public function getName()
  108. {
  109. return $this->_name;
  110. }
  111. public function setName($value)
  112. {
  113. $this->_name = $value;
  114. }
  115. /**
  116. * @var string
  117. */
  118. protected $_type;
  119. public function getType()
  120. {
  121. return $this->_type;
  122. }
  123. public function setType($value)
  124. {
  125. $this->_type = $value;
  126. }
  127. /**
  128. * @var string
  129. */
  130. protected $_content;
  131. public function getContent()
  132. {
  133. return $this->_content;
  134. }
  135. public function setContent($value)
  136. {
  137. $this->_content = $value;
  138. }
  139. /**
  140. * @var integer
  141. */
  142. protected $_ttl;
  143. public function getTtl()
  144. {
  145. return $this->_ttl;
  146. }
  147. public function setTtl($value)
  148. {
  149. $this->_ttl = $value;
  150. }
  151. /**
  152. * @var integer
  153. */
  154. protected $_prio;
  155. public function getPrio()
  156. {
  157. return $this->_prio;
  158. }
  159. public function setPrio($value)
  160. {
  161. $this->_prio = $value;
  162. }
  163. /**
  164. * @var integer
  165. */
  166. protected $_changeDate;
  167. public function getChangeDate()
  168. {
  169. return $this->_changeDate;
  170. }
  171. public function setChangeDate($value)
  172. {
  173. $this->_changeDate = $value;
  174. }
  175. /**
  176. * @var boolean
  177. */
  178. protected $_disabled;
  179. public function getDisabled()
  180. {
  181. return $this->_disabled;
  182. }
  183. public function setDisabled($value)
  184. {
  185. $this->_disabled = $value;
  186. }
  187. /**
  188. * @var string
  189. */
  190. protected $_ordername;
  191. public function getOrdername()
  192. {
  193. return $this->_ordername;
  194. }
  195. public function setOrdername($value)
  196. {
  197. $this->_ordername = $value;
  198. }
  199. /**
  200. * @var boolean
  201. */
  202. protected $_auth;
  203. public function getAuth()
  204. {
  205. return $this->_auth;
  206. }
  207. public function setAuth($value)
  208. {
  209. $this->_auth = $value;
  210. }
  211. }