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