mirror of
https://github.com/Karaka-Management/oms-Tag.git
synced 2026-01-10 15:28:39 +00:00
47 lines
733 B
PHP
Executable File
47 lines
733 B
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Modules\Tag\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Tag\Models;
|
|
|
|
/**
|
|
* Null model
|
|
*
|
|
* @package Modules\Tag\Models
|
|
* @license OMS License 2.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*/
|
|
final class NullTag extends Tag
|
|
{
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @param int $id Model id
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct(int $id = 0)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function jsonSerialize() : mixed
|
|
{
|
|
return ['id' => $this->id];
|
|
}
|
|
}
|