選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DnsSupermastersDbo.php 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 DnsSupermastersDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Ip" => $this->_ip,
  13. "Nameserver" => $this->_nameserver,
  14. "Account" => $this->_account
  15. );
  16. }
  17. public static function jsonDeserialize($json)
  18. {
  19. $dbo = new DnsSupermastersDbo();
  20. if (isset($json["Ip"])) {
  21. $dbo->setIp($json["Ip"]);
  22. }
  23. if (isset($json["Nameserver"])) {
  24. $dbo->setNameserver($json["Nameserver"]);
  25. }
  26. if (isset($json["Account"])) {
  27. $dbo->setAccount($json["Account"]);
  28. }
  29. return $dbo;
  30. }
  31. public static function generateSample()
  32. {
  33. $dbo = new DnsSupermastersDbo();
  34. $dbo->setIp("sample string");
  35. $dbo->setNameserver("sample string");
  36. $dbo->setAccount("sample string");
  37. return $dbo;
  38. }
  39. /**
  40. * @var inet
  41. */
  42. protected $_ip;
  43. public function getIp()
  44. {
  45. return $this->_ip;
  46. }
  47. public function setIp($value)
  48. {
  49. $this->_ip = $value;
  50. }
  51. /**
  52. * @var string
  53. */
  54. protected $_nameserver;
  55. public function getNameserver()
  56. {
  57. return $this->_nameserver;
  58. }
  59. public function setNameserver($value)
  60. {
  61. $this->_nameserver = $value;
  62. }
  63. /**
  64. * @var string
  65. */
  66. protected $_account;
  67. public function getAccount()
  68. {
  69. return $this->_account;
  70. }
  71. public function setAccount($value)
  72. {
  73. $this->_account = $value;
  74. }
  75. }