123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class CamerasDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "Name" => $this->_name,
- "Description" => $this->_description,
- "HostId" => $this->_hostId,
- "CameraTypeId" => $this->_cameraTypeId,
- "Data" => $this->_data
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new CamerasDbo();
- if (isset($json["Id"])) {
- $dbo->setId($json["Id"]);
- }
- if (isset($json["Name"])) {
- $dbo->setName($json["Name"]);
- }
- if (isset($json["Description"])) {
- $dbo->setDescription($json["Description"]);
- }
- if (isset($json["HostId"])) {
- $dbo->setHostId($json["HostId"]);
- }
- if (isset($json["CameraTypeId"])) {
- $dbo->setCameraTypeId($json["CameraTypeId"]);
- }
- if (isset($json["Data"])) {
- $dbo->setData(json_decode($json["Data"], true));
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new CamerasDbo();
- $dbo->setId(42);
- $dbo->setName("sample string");
- $dbo->setDescription("sample string");
- $dbo->setHostId(42);
- $dbo->setCameraTypeId(42);
- $dbo->setData("sample string");
- return $dbo;
- }
-
- /**
- * @var integer
- */
- protected $_id;
- public function getId()
- {
- return $this->_id;
- }
- public function setId($value)
- {
- $this->_id = $value;
- }
-
- /**
- * @var string
- */
- protected $_name;
- public function getName()
- {
- return $this->_name;
- }
- public function setName($value)
- {
- $this->_name = $value;
- }
-
- /**
- * @var string
- */
- protected $_description;
- public function getDescription()
- {
- return $this->_description;
- }
- public function setDescription($value)
- {
- $this->_description = $value;
- }
-
- /**
- * @var integer
- */
- protected $_hostId;
- public function getHostId()
- {
- return $this->_hostId;
- }
- public function setHostId($value)
- {
- $this->_hostId = $value;
- }
-
- /**
- * @var integer
- */
- protected $_cameraTypeId;
- public function getCameraTypeId()
- {
- return $this->_cameraTypeId;
- }
- public function setCameraTypeId($value)
- {
- $this->_cameraTypeId = $value;
- }
-
- /**
- * @var text
- */
- protected $_data;
- public function getData()
- {
- return $this->_data;
- }
- public function setData($value)
- {
- $this->_data = $value;
- }
- }
|