$this->_id, "Name" => $this->_name, "Description" => $this->_description, "HostId" => $this->_hostId, "SensorTypeId" => $this->_sensorTypeId, "Data" => $this->_data ); } public static function jsonDeserialize($json) { $dbo = new SensorsDbo(); 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["SensorTypeId"])) { $dbo->setSensorTypeId($json["SensorTypeId"]); } if (isset($json["Data"])) { $dbo->setData(json_decode($json["Data"], true)); } return $dbo; } public static function generateSample() { $dbo = new SensorsDbo(); $dbo->setId(42); $dbo->setName("sample string"); $dbo->setDescription("sample string"); $dbo->setHostId(42); $dbo->setSensorTypeId(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 $_sensorTypeId; public function getSensorTypeId() { return $this->_sensorTypeId; } public function setSensorTypeId($value) { $this->_sensorTypeId = $value; } /** * @var text */ protected $_data; public function getData() { return $this->_data; } public function setData($value) { $this->_data = $value; } }