$this->_id, "Name" => $this->_name, "Algorithm" => $this->_algorithm, "Secret" => $this->_secret ); } public static function jsonDeserialize($json) { $dbo = new DnsTsigkeysDbo(); if (isset($json["Id"])) { $dbo->setId($json["Id"]); } if (isset($json["Name"])) { $dbo->setName($json["Name"]); } if (isset($json["Algorithm"])) { $dbo->setAlgorithm($json["Algorithm"]); } if (isset($json["Secret"])) { $dbo->setSecret($json["Secret"]); } return $dbo; } public static function generateSample() { $dbo = new DnsTsigkeysDbo(); $dbo->setId(42); $dbo->setName("sample string"); $dbo->setAlgorithm("sample string"); $dbo->setSecret("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 $_algorithm; public function getAlgorithm() { return $this->_algorithm; } public function setAlgorithm($value) { $this->_algorithm = $value; } /** * @var string */ protected $_secret; public function getSecret() { return $this->_secret; } public function setSecret($value) { $this->_secret = $value; } }