123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class DnsDomainsDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "Name" => $this->_name,
- "Master" => $this->_master,
- "LastCheck" => $this->_lastCheck,
- "Type" => $this->_type,
- "NotifiedSerial" => $this->_notifiedSerial,
- "Account" => $this->_account
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new DnsDomainsDbo();
- if (isset($json["Id"])) {
- $dbo->setId($json["Id"]);
- }
- if (isset($json["Name"])) {
- $dbo->setName($json["Name"]);
- }
- if (isset($json["Master"])) {
- $dbo->setMaster($json["Master"]);
- }
- if (isset($json["LastCheck"])) {
- $dbo->setLastCheck($json["LastCheck"]);
- }
- if (isset($json["Type"])) {
- $dbo->setType($json["Type"]);
- }
- if (isset($json["NotifiedSerial"])) {
- $dbo->setNotifiedSerial($json["NotifiedSerial"]);
- }
- if (isset($json["Account"])) {
- $dbo->setAccount($json["Account"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new DnsDomainsDbo();
- $dbo->setId(42);
- $dbo->setName("sample string");
- $dbo->setMaster("sample string");
- $dbo->setLastCheck(42);
- $dbo->setType("sample string");
- $dbo->setNotifiedSerial(42);
- $dbo->setAccount("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 $_master;
- public function getMaster()
- {
- return $this->_master;
- }
- public function setMaster($value)
- {
- $this->_master = $value;
- }
-
- /**
- * @var integer
- */
- protected $_lastCheck;
- public function getLastCheck()
- {
- return $this->_lastCheck;
- }
- public function setLastCheck($value)
- {
- $this->_lastCheck = $value;
- }
-
- /**
- * @var string
- */
- protected $_type;
- public function getType()
- {
- return $this->_type;
- }
- public function setType($value)
- {
- $this->_type = $value;
- }
-
- /**
- * @var integer
- */
- protected $_notifiedSerial;
- public function getNotifiedSerial()
- {
- return $this->_notifiedSerial;
- }
- public function setNotifiedSerial($value)
- {
- $this->_notifiedSerial = $value;
- }
-
- /**
- * @var string
- */
- protected $_account;
- public function getAccount()
- {
- return $this->_account;
- }
- public function setAccount($value)
- {
- $this->_account = $value;
- }
- }
|