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.

ImagesDbo.php 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 ImagesDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "UserId" => $this->_userId,
  14. "Path" => $this->_path,
  15. "Date" => $this->_date,
  16. "Name" => $this->_name
  17. );
  18. }
  19. public static function jsonDeserialize($json)
  20. {
  21. $dbo = new ImagesDbo();
  22. if (isset($json["Id"])) {
  23. $dbo->setId($json["Id"]);
  24. }
  25. if (isset($json["UserId"])) {
  26. $dbo->setUserId($json["UserId"]);
  27. }
  28. if (isset($json["Path"])) {
  29. $dbo->setPath($json["Path"]);
  30. }
  31. if (isset($json["Date"])) {
  32. $dbo->setDate($json["Date"]);
  33. }
  34. if (isset($json["Name"])) {
  35. $dbo->setName($json["Name"]);
  36. }
  37. return $dbo;
  38. }
  39. public static function generateSample()
  40. {
  41. $dbo = new ImagesDbo();
  42. $dbo->setId(42);
  43. $dbo->setUserId(42);
  44. $dbo->setPath("sample string");
  45. $dbo->setDate("sample string");
  46. $dbo->setName("sample string");
  47. return $dbo;
  48. }
  49. /**
  50. * @var integer
  51. */
  52. protected $_id;
  53. public function getId()
  54. {
  55. return $this->_id;
  56. }
  57. public function setId($value)
  58. {
  59. $this->_id = $value;
  60. }
  61. /**
  62. * @var integer
  63. */
  64. protected $_userId;
  65. public function getUserId()
  66. {
  67. return $this->_userId;
  68. }
  69. public function setUserId($value)
  70. {
  71. $this->_userId = $value;
  72. }
  73. /**
  74. * @var text
  75. */
  76. protected $_path;
  77. public function getPath()
  78. {
  79. return $this->_path;
  80. }
  81. public function setPath($value)
  82. {
  83. $this->_path = $value;
  84. }
  85. /**
  86. * @var timestamp without time zone
  87. */
  88. protected $_date;
  89. public function getDate()
  90. {
  91. return $this->_date;
  92. }
  93. public function setDate($value)
  94. {
  95. $this->_date = $value;
  96. }
  97. /**
  98. * @var text
  99. */
  100. protected $_name;
  101. public function getName()
  102. {
  103. return $this->_name;
  104. }
  105. public function setName($value)
  106. {
  107. $this->_name = $value;
  108. }
  109. }