123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class DnsCommentsDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "DomainId" => $this->_domainId,
- "Name" => $this->_name,
- "Type" => $this->_type,
- "ModifiedAt" => $this->_modifiedAt,
- "Account" => $this->_account,
- "Comment" => $this->_comment
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new DnsCommentsDbo();
- 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["ModifiedAt"])) {
- $dbo->setModifiedAt($json["ModifiedAt"]);
- }
- if (isset($json["Account"])) {
- $dbo->setAccount($json["Account"]);
- }
- if (isset($json["Comment"])) {
- $dbo->setComment($json["Comment"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new DnsCommentsDbo();
- $dbo->setId(42);
- $dbo->setDomainId(42);
- $dbo->setName("sample string");
- $dbo->setType("sample string");
- $dbo->setModifiedAt(42);
- $dbo->setAccount("sample string");
- $dbo->setComment("sample string");
- 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 integer
- */
- protected $_modifiedAt;
- public function getModifiedAt()
- {
- return $this->_modifiedAt;
- }
- public function setModifiedAt($value)
- {
- $this->_modifiedAt = $value;
- }
-
- /**
- * @var string
- */
- protected $_account;
- public function getAccount()
- {
- return $this->_account;
- }
- public function setAccount($value)
- {
- $this->_account = $value;
- }
-
- /**
- * @var string
- */
- protected $_comment;
- public function getComment()
- {
- return $this->_comment;
- }
- public function setComment($value)
- {
- $this->_comment = $value;
- }
- }
|