1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- * DO NOT DIRECTLY USE THIS FILE
- * USE DnsDomainmetadata.php
- * TO MAKE YOUR CHANGES AND DATABASE ACCESS
- */
-
- namespace App\Http\DataAccess\Models;
-
- use Luticate\Utils\LuModel;
- use App\Http\DBO\DnsDomainmetadataDbo;
-
- class DnsDomainmetadataModel extends LuModel
- {
- function __construct()
- {
- parent::__construct();
- $this->timestamps = false;
- }
-
- public function toDbo()
- {
- $dbo = new DnsDomainmetadataDbo();
-
- $dbo->setId($this->id);
- $dbo->setDomainId($this->domain_id);
- $dbo->setKind($this->kind);
- $dbo->setContent($this->content);
-
- return $dbo;
- }
-
- /**
- * @param $dbo DnsDomainmetadataDbo
- * @param $model LuModel|null
- * @return DnsDomainmetadata
- */
- public function fromDbo($dbo, $model = null)
- {
- if (is_null($model))
- $model = new DnsDomainmetadata();
-
- $model->id = $dbo->getId();
- $model->domain_id = $dbo->getDomainId();
- $model->kind = $dbo->getKind();
- $model->content = $dbo->getContent();
-
- return $model;
- }
- }
|