123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class DnsTsigkeysDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $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;
- }
- }
|