fix null model bug

This commit is contained in:
Dennis Eichhorn 2020-06-07 22:23:03 +02:00
parent be9d06e6ee
commit 508563255d
2 changed files with 13 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Employee implements ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
/**
* Account profile.

View File

@ -24,4 +24,16 @@ namespace Modules\HumanResourceManagement\Models;
*/
final class NullEmployee extends Employee
{
/**
* Constructor
*
* @param int $id Model id
*
* @since 1.0.0
*/
public function __construct(int $id = 0)
{
$this->id = $id;
parent::__construct();
}
}