make fixes for new datamapper

This commit is contained in:
Dennis Eichhorn 2020-03-13 23:30:58 +01:00
parent d3b26a85cc
commit fa0a46562f
2 changed files with 40 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
/**
* Title.

39
Models/NullEditorDoc.php Normal file
View File

@ -0,0 +1,39 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Editor\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Editor\Models;
/**
* Null model
*
* @package Modules\Editor\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class NullEditorDoc extends EditorDoc
{
/**
* Constructor
*
* @param int $id Model id
*
* @since 1.0.0
*/
public function __construct(int $id = 0)
{
$this->id = $id;
parent::__construct();
}
}