123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class ImagesDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "UserId" => $this->_userId,
- "Path" => $this->_path,
- "Date" => $this->_date,
- "Name" => $this->_name
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new ImagesDbo();
- if (isset($json["Id"])) {
- $dbo->setId($json["Id"]);
- }
- if (isset($json["UserId"])) {
- $dbo->setUserId($json["UserId"]);
- }
- if (isset($json["Path"])) {
- $dbo->setPath($json["Path"]);
- }
- if (isset($json["Date"])) {
- $dbo->setDate($json["Date"]);
- }
- if (isset($json["Name"])) {
- $dbo->setName($json["Name"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new ImagesDbo();
- $dbo->setId(42);
- $dbo->setUserId(42);
- $dbo->setPath("sample string");
- $dbo->setDate("sample string");
- $dbo->setName("sample string");
- return $dbo;
- }
-
- /**
- * @var integer
- */
- protected $_id;
- public function getId()
- {
- return $this->_id;
- }
- public function setId($value)
- {
- $this->_id = $value;
- }
-
- /**
- * @var integer
- */
- protected $_userId;
- public function getUserId()
- {
- return $this->_userId;
- }
- public function setUserId($value)
- {
- $this->_userId = $value;
- }
-
- /**
- * @var text
- */
- protected $_path;
- public function getPath()
- {
- return $this->_path;
- }
- public function setPath($value)
- {
- $this->_path = $value;
- }
-
- /**
- * @var timestamp without time zone
- */
- protected $_date;
- public function getDate()
- {
- return $this->_date;
- }
- public function setDate($value)
- {
- $this->_date = $value;
- }
-
- /**
- * @var text
- */
- protected $_name;
- public function getName()
- {
- return $this->_name;
- }
- public function setName($value)
- {
- $this->_name = $value;
- }
- }
|