123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DBO;
-
- use Luticate\Utils\LuDbo;
-
- class HostsDbo extends LuDbo {
-
- public function jsonSerialize()
- {
- return array(
- "Id" => $this->_id,
- "Name" => $this->_name,
- "Url" => $this->_url,
- "Token" => $this->_token
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new HostsDbo();
- if (isset($json["Id"])) {
- $dbo->setId($json["Id"]);
- }
- if (isset($json["Name"])) {
- $dbo->setName($json["Name"]);
- }
- if (isset($json["Url"])) {
- $dbo->setUrl($json["Url"]);
- }
- if (isset($json["Token"])) {
- $dbo->setToken($json["Token"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new HostsDbo();
- $dbo->setId(42);
- $dbo->setName("sample string");
- $dbo->setUrl("sample string");
- $dbo->setToken("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 $_url;
- public function getUrl()
- {
- return $this->_url;
- }
- public function setUrl($value)
- {
- $this->_url = $value;
- }
-
- /**
- * @var string
- */
- protected $_token;
- public function getToken()
- {
- return $this->_token;
- }
- public function setToken($value)
- {
- $this->_token = $value;
- }
- }
|