123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- * DO NOT DIRECTLY USE THIS FILE
- * USE DnsSupermasters.php
- * TO MAKE YOUR CHANGES AND DATABASE ACCESS
- */
-
- namespace App\Http\DataAccess\Models;
-
- use Luticate\Utils\LuModel;
- use App\Http\DBO\DnsSupermastersDbo;
-
- class DnsSupermastersModel extends LuModel
- {
- function __construct()
- {
- parent::__construct();
- $this->timestamps = false;
- }
-
- public function toDbo()
- {
- $dbo = new DnsSupermastersDbo();
-
- $dbo->setIp($this->ip);
- $dbo->setNameserver($this->nameserver);
- $dbo->setAccount($this->account);
-
- return $dbo;
- }
-
- /**
- * @param $dbo DnsSupermastersDbo
- * @param $model LuModel|null
- * @return DnsSupermasters
- */
- public function fromDbo($dbo, $model = null)
- {
- if (is_null($model))
- $model = new DnsSupermasters();
-
- $model->ip = $dbo->getIp();
- $model->nameserver = $dbo->getNameserver();
- $model->account = $dbo->getAccount();
-
- return $model;
- }
- }
|