123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class DnsRecordsDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "DomainId" => $this->_domainId,
- "Name" => $this->_name,
- "Type" => $this->_type,
- "Content" => $this->_content,
- "Ttl" => $this->_ttl,
- "Prio" => $this->_prio,
- "ChangeDate" => $this->_changeDate,
- "Disabled" => $this->_disabled,
- "Ordername" => $this->_ordername,
- "Auth" => $this->_auth
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new DnsRecordsDbo();
- if (isset($json["Id"])) {
- $dbo->setId($json["Id"]);
- }
- if (isset($json["DomainId"])) {
- $dbo->setDomainId($json["DomainId"]);
- }
- if (isset($json["Name"])) {
- $dbo->setName($json["Name"]);
- }
- if (isset($json["Type"])) {
- $dbo->setType($json["Type"]);
- }
- if (isset($json["Content"])) {
- $dbo->setContent($json["Content"]);
- }
- if (isset($json["Ttl"])) {
- $dbo->setTtl($json["Ttl"]);
- }
- if (isset($json["Prio"])) {
- $dbo->setPrio($json["Prio"]);
- }
- if (isset($json["ChangeDate"])) {
- $dbo->setChangeDate($json["ChangeDate"]);
- }
- if (isset($json["Disabled"])) {
- $dbo->setDisabled($json["Disabled"]);
- }
- if (isset($json["Ordername"])) {
- $dbo->setOrdername($json["Ordername"]);
- }
- if (isset($json["Auth"])) {
- $dbo->setAuth($json["Auth"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new DnsRecordsDbo();
- $dbo->setId(42);
- $dbo->setDomainId(42);
- $dbo->setName("sample string");
- $dbo->setType("sample string");
- $dbo->setContent("sample string");
- $dbo->setTtl(42);
- $dbo->setPrio(42);
- $dbo->setChangeDate(42);
- $dbo->setDisabled(true);
- $dbo->setOrdername("sample string");
- $dbo->setAuth(true);
- return $dbo;
- }
-
- /**
- * @var integer
- */
- protected $_id;
- public function getId()
- {
- return $this->_id;
- }
- public function setId($value)
- {
- $this->_id = $value;
- }
-
- /**
- * @var integer
- */
- protected $_domainId;
- public function getDomainId()
- {
- return $this->_domainId;
- }
- public function setDomainId($value)
- {
- $this->_domainId = $value;
- }
-
- /**
- * @var string
- */
- protected $_name;
- public function getName()
- {
- return $this->_name;
- }
- public function setName($value)
- {
- $this->_name = $value;
- }
-
- /**
- * @var string
- */
- protected $_type;
- public function getType()
- {
- return $this->_type;
- }
- public function setType($value)
- {
- $this->_type = $value;
- }
-
- /**
- * @var string
- */
- protected $_content;
- public function getContent()
- {
- return $this->_content;
- }
- public function setContent($value)
- {
- $this->_content = $value;
- }
-
- /**
- * @var integer
- */
- protected $_ttl;
- public function getTtl()
- {
- return $this->_ttl;
- }
- public function setTtl($value)
- {
- $this->_ttl = $value;
- }
-
- /**
- * @var integer
- */
- protected $_prio;
- public function getPrio()
- {
- return $this->_prio;
- }
- public function setPrio($value)
- {
- $this->_prio = $value;
- }
-
- /**
- * @var integer
- */
- protected $_changeDate;
- public function getChangeDate()
- {
- return $this->_changeDate;
- }
- public function setChangeDate($value)
- {
- $this->_changeDate = $value;
- }
-
- /**
- * @var boolean
- */
- protected $_disabled;
- public function getDisabled()
- {
- return $this->_disabled;
- }
- public function setDisabled($value)
- {
- $this->_disabled = $value;
- }
-
- /**
- * @var string
- */
- protected $_ordername;
- public function getOrdername()
- {
- return $this->_ordername;
- }
- public function setOrdername($value)
- {
- $this->_ordername = $value;
- }
-
- /**
- * @var boolean
- */
- protected $_auth;
- public function getAuth()
- {
- return $this->_auth;
- }
- public function setAuth($value)
- {
- $this->_auth = $value;
- }
- }
|