28bc360106
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXF\Chrono\Entity;
|
|
|
|
use DateTimeInterface;
|
|
use KTXF\Chrono\Entity\Property\AttachmentCollection;
|
|
use KTXF\Chrono\Entity\Property\TagCollection;
|
|
use KTXF\Chrono\Entity\Property\TaskRecurrenceObject;
|
|
use KTXF\Chrono\Entity\Property\TaskStatusTypes;
|
|
use KTXF\Chrono\Entity\Property\TaskSubtaskCollection;
|
|
|
|
class TaskObject extends EntityPropertiesMutableAbstract {
|
|
public string $type = 'task';
|
|
public ?string $urid = null;
|
|
public ?DateTimeInterface $created = null;
|
|
public ?DateTimeInterface $modified = null;
|
|
public ?string $label = null;
|
|
public ?string $description = null;
|
|
public TagCollection $tags;
|
|
public ?DateTimeInterface $startsOn = null;
|
|
public ?DateTimeInterface $dueOn = null;
|
|
public ?DateTimeInterface $completedOn = null;
|
|
public ?TaskStatusTypes $status = null;
|
|
public ?int $priority = null;
|
|
public ?int $progress = null;
|
|
public ?string $color = null;
|
|
public ?TaskRecurrenceObject $recurrence = null;
|
|
public TaskSubtaskCollection $subtasks;
|
|
public AttachmentCollection $attachments;
|
|
public ?string $notes = null;
|
|
|
|
public function __construct() {
|
|
$this->tags = new TagCollection();
|
|
$this->subtasks = new TaskSubtaskCollection();
|
|
$this->attachments = new AttachmentCollection();
|
|
}
|
|
}
|