Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DnsCommentsDbo.php 3.1KB

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 DnsCommentsDbo 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. "ModifiedAt" => $this->_modifiedAt,
  17. "Account" => $this->_account,
  18. "Comment" => $this->_comment
  19. );
  20. }
  21. public static function jsonDeserialize($json)
  22. {
  23. $dbo = new DnsCommentsDbo();
  24. if (isset($json["Id"])) {
  25. $dbo->setId($json["Id"]);
  26. }
  27. if (isset($json["DomainId"])) {
  28. $dbo->setDomainId($json["DomainId"]);
  29. }
  30. if (isset($json["Name"])) {
  31. $dbo->setName($json["Name"]);
  32. }
  33. if (isset($json["Type"])) {
  34. $dbo->setType($json["Type"]);
  35. }
  36. if (isset($json["ModifiedAt"])) {
  37. $dbo->setModifiedAt($json["ModifiedAt"]);
  38. }
  39. if (isset($json["Account"])) {
  40. $dbo->setAccount($json["Account"]);
  41. }
  42. if (isset($json["Comment"])) {
  43. $dbo->setComment($json["Comment"]);
  44. }
  45. return $dbo;
  46. }
  47. public static function generateSample()
  48. {
  49. $dbo = new DnsCommentsDbo();
  50. $dbo->setId(42);
  51. $dbo->setDomainId(42);
  52. $dbo->setName("sample string");
  53. $dbo->setType("sample string");
  54. $dbo->setModifiedAt(42);
  55. $dbo->setAccount("sample string");
  56. $dbo->setComment("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 integer
  73. */
  74. protected $_domainId;
  75. public function getDomainId()
  76. {
  77. return $this->_domainId;
  78. }
  79. public function setDomainId($value)
  80. {
  81. $this->_domainId = $value;
  82. }
  83. /**
  84. * @var string
  85. */
  86. protected $_name;
  87. public function getName()
  88. {
  89. return $this->_name;
  90. }
  91. public function setName($value)
  92. {
  93. $this->_name = $value;
  94. }
  95. /**
  96. * @var string
  97. */
  98. protected $_type;
  99. public function getType()
  100. {
  101. return $this->_type;
  102. }
  103. public function setType($value)
  104. {
  105. $this->_type = $value;
  106. }
  107. /**
  108. * @var integer
  109. */
  110. protected $_modifiedAt;
  111. public function getModifiedAt()
  112. {
  113. return $this->_modifiedAt;
  114. }
  115. public function setModifiedAt($value)
  116. {
  117. $this->_modifiedAt = $value;
  118. }
  119. /**
  120. * @var string
  121. */
  122. protected $_account;
  123. public function getAccount()
  124. {
  125. return $this->_account;
  126. }
  127. public function setAccount($value)
  128. {
  129. $this->_account = $value;
  130. }
  131. /**
  132. * @var string
  133. */
  134. protected $_comment;
  135. public function getComment()
  136. {
  137. return $this->_comment;
  138. }
  139. public function setComment($value)
  140. {
  141. $this->_comment = $value;
  142. }
  143. }