$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["Data"]); } 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; } }