code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 20:24:38 +00:00
parent 19f82b3e85
commit 03ff82e5e2
7 changed files with 14 additions and 5 deletions

View File

@ -40,6 +40,11 @@ class Checklist
public array $tasks = [];
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();

View File

@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* @link https://jingga.app
* @since 1.0.0
*
* @template T of BaseStringL11n
* @template T of Checklist
* @extends DataMapperFactory<T>
*/
final class ChecklistMapper extends DataMapperFactory

View File

@ -49,6 +49,11 @@ class ChecklistTemplate
*/
public array $tasks = [];
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->start = new \DateTime();

View File

@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* @link https://jingga.app
* @since 1.0.0
*
* @template T of BaseStringL11n
* @template T of ChecklistTemplate
* @extends DataMapperFactory<T>
*/
final class ChecklistTemplateMapper extends DataMapperFactory

View File

@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
* @link https://jingga.app
* @since 1.0.0
*
* @template T of BaseStringL11n
* @template T of ChecklistTemplateTask
* @extends DataMapperFactory<T>
*/
final class ChecklistTemplateTaskMapper extends DataMapperFactory

View File

@ -22,7 +22,7 @@ namespace Modules\Checklist\Models;
* @link https://jingga.app
* @since 1.0.0
*/
final class NullChecklistTask extends ChecklistTask
final class NullChecklistTemplateTask extends ChecklistTemplateTask
{
/**
* Constructor

View File

@ -13,7 +13,6 @@
declare(strict_types=1);
use Modules\Tasks\Models\TaskPriority;
use phpOMS\Stdlib\Base\SmartDateTime;
/**
* @var \phpOMS\Views\View $this