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