refactor: chrono objects
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?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;
|
||||
use KTXF\Json\JsonSerializableObject;
|
||||
|
||||
class TaskObject extends JsonSerializableObject {
|
||||
public string $type = 'task';
|
||||
public int $version = 1;
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user