Files

96 lines
3.1 KiB
PHP

<?php
declare(strict_types=1);
namespace OCA\NuqloudScrum\Db;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
/**
* @method int getWorkspaceId()
* @method void setWorkspaceId(int $workspaceId)
* @method ?string getTalkThreadId()
* @method void setTalkThreadId(?string $talkThreadId)
* @method int getTalkRootMessageId()
* @method void setTalkRootMessageId(int $talkRootMessageId)
* @method string getTitle()
* @method void setTitle(string $title)
* @method string getSlug()
* @method void setSlug(string $slug)
* @method string getFolderPath()
* @method void setFolderPath(string $folderPath)
* @method ?int getDeckCardId()
* @method void setDeckCardId(?int $deckCardId)
* @method ?int getDeckStackId()
* @method void setDeckStackId(?int $deckStackId)
* @method string getStatus()
* @method void setStatus(string $status)
* @method string getPriority()
* @method void setPriority(string $priority)
* @method ?string getCreatedBy()
* @method void setCreatedBy(?string $createdBy)
* @method ?string getAssignedTo()
* @method void setAssignedTo(?string $assignedTo)
* @method ?int getDueAt()
* @method void setDueAt(?int $dueAt)
* @method int getLastActivityMessageId()
* @method void setLastActivityMessageId(int $lastActivityMessageId)
* @method int getCreatedAt()
* @method void setCreatedAt(int $createdAt)
* @method int getUpdatedAt()
* @method void setUpdatedAt(int $updatedAt)
*/
class ThreadTask extends Entity implements \JsonSerializable {
protected $workspaceId = 0;
protected $talkThreadId = null;
protected $talkRootMessageId = 0;
protected $title = '';
protected $slug = '';
protected $folderPath = '';
protected $deckCardId = null;
protected $deckStackId = null;
protected $status = 'inbox';
protected $priority = 'normal';
protected $createdBy = null;
protected $assignedTo = null;
protected $dueAt = null;
protected $lastActivityMessageId = 0;
protected $createdAt = 0;
protected $updatedAt = 0;
public function __construct() {
$this->addType('workspaceId', Types::INTEGER);
$this->addType('talkRootMessageId', Types::INTEGER);
$this->addType('deckCardId', Types::INTEGER);
$this->addType('deckStackId', Types::INTEGER);
$this->addType('dueAt', Types::INTEGER);
$this->addType('lastActivityMessageId', Types::INTEGER);
$this->addType('createdAt', Types::INTEGER);
$this->addType('updatedAt', Types::INTEGER);
}
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return [
'id' => $this->getId(),
'workspaceId' => $this->getWorkspaceId(),
'talkThreadId' => $this->getTalkThreadId(),
'talkRootMessageId' => $this->getTalkRootMessageId(),
'title' => $this->getTitle(),
'slug' => $this->getSlug(),
'folderPath' => $this->getFolderPath(),
'deckCardId' => $this->getDeckCardId(),
'deckStackId' => $this->getDeckStackId(),
'status' => $this->getStatus(),
'priority' => $this->getPriority(),
'createdBy' => $this->getCreatedBy(),
'assignedTo' => $this->getAssignedTo(),
'dueAt' => $this->getDueAt(),
'lastActivityMessageId' => $this->getLastActivityMessageId(),
'createdAt' => $this->getCreatedAt(),
'updatedAt' => $this->getUpdatedAt(),
];
}
}