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