oms-Checklist/Models/ChecklistTemplateTask.php
2024-01-26 22:53:59 +00:00

61 lines
924 B
PHP

<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package Modules\Checklist\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Checklist\Models;
use Modules\Tasks\Models\Task;
/**
* Checklist class.
*
* @package Modules\Checklist\Models
* @license OMS License 2.0
* @link https://jingga.app
* @since 1.0.0
*/
class ChecklistTemplateTask
{
/**
* ID.
*
* @var int
* @since 1.0.0
*/
public int $id = 0;
public int $order = 0;
public int $template = 0;
public Task $task;
/**
* {@inheritdoc}
*/
public function toArray() : array
{
return [
'id' => $this->id,
];
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return $this->toArray();
}
}