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 1.5KB

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 ImagesDbo extends LuDbo {
  9. public function jsonSerialize()
  10. {
  11. return array(
  12. "Id" => $this->_id,
  13. "UserId" => $this->_userId,
  14. "Path" => $this->_path
  15. );
  16. }
  17. public static function jsonDeserialize($json)
  18. {
  19. $dbo = new ImagesDbo();
  20. if (isset($json["Id"])) {
  21. $dbo->setId($json["Id"]);
  22. }
  23. if (isset($json["UserId"])) {
  24. $dbo->setUserId($json["UserId"]);
  25. }
  26. if (isset($json["Path"])) {
  27. $dbo->setPath($json["Path"]);
  28. }
  29. return $dbo;
  30. }
  31. public static function generateSample()
  32. {
  33. $dbo = new ImagesDbo();
  34. $dbo->setId(42);
  35. $dbo->setUserId(42);
  36. $dbo->setPath("sample string");
  37. return $dbo;
  38. }
  39. /**
  40. * @var integer
  41. */
  42. protected $_id;
  43. public function getId()
  44. {
  45. return $this->_id;
  46. }
  47. public function setId($value)
  48. {
  49. $this->_id = $value;
  50. }
  51. /**
  52. * @var integer
  53. */
  54. protected $_userId;
  55. public function getUserId()
  56. {
  57. return $this->_userId;
  58. }
  59. public function setUserId($value)
  60. {
  61. $this->_userId = $value;
  62. }
  63. /**
  64. * @var text
  65. */
  66. protected $_path;
  67. public function getPath()
  68. {
  69. return $this->_path;
  70. }
  71. public function setPath($value)
  72. {
  73. $this->_path = $value;
  74. }
  75. }