Nextcloud-App/lib/Db/Ticket.php

28 lines
642 B
PHP

<?php
namespace OCA\UPschooling\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Ticket extends Entity implements JsonSerializable {
protected $title;
protected $description;
protected $helperId;
protected $creatorId; // The ID of the person who created the Ticked. Usually the person who needs help.
protected $dueDate;
protected $status;
public function jsonSerialize(): array {
return [
'id' => $this->id,
'title' => $this->title,
'description' => $this->description,
'helperId' => $this->helperId,
'dueDate' => $this->dueDate,
'status' => $this->status,
];
}
}