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.

HostsDbo.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 HostsDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "Name" => $this->_name,
  14. "Url" => $this->_url,
  15. "Token" => $this->_token
  16. );
  17. }
  18. public static function jsonDeserialize($json)
  19. {
  20. $dbo = new HostsDbo();
  21. if (isset($json["Id"])) {
  22. $dbo->setId($json["Id"]);
  23. }
  24. if (isset($json["Name"])) {
  25. $dbo->setName($json["Name"]);
  26. }
  27. if (isset($json["Url"])) {
  28. $dbo->setUrl($json["Url"]);
  29. }
  30. if (isset($json["Token"])) {
  31. $dbo->setToken($json["Token"]);
  32. }
  33. return $dbo;
  34. }
  35. public static function generateSample()
  36. {
  37. $dbo = new HostsDbo();
  38. $dbo->setId(42);
  39. $dbo->setName("sample string");
  40. $dbo->setUrl("sample string");
  41. $dbo->setToken("sample string");
  42. return $dbo;
  43. }
  44. /**
  45. * @var integer
  46. */
  47. protected $_id;
  48. public function getId()
  49. {
  50. return $this->_id;
  51. }
  52. public function setId($value)
  53. {
  54. $this->_id = $value;
  55. }
  56. /**
  57. * @var string
  58. */
  59. protected $_name;
  60. public function getName()
  61. {
  62. return $this->_name;
  63. }
  64. public function setName($value)
  65. {
  66. $this->_name = $value;
  67. }
  68. /**
  69. * @var string
  70. */
  71. protected $_url;
  72. public function getUrl()
  73. {
  74. return $this->_url;
  75. }
  76. public function setUrl($value)
  77. {
  78. $this->_url = $value;
  79. }
  80. /**
  81. * @var string
  82. */
  83. protected $_token;
  84. public function getToken()
  85. {
  86. return $this->_token;
  87. }
  88. public function setToken($value)
  89. {
  90. $this->_token = $value;
  91. }
  92. }