2021-08-21 14:17:14 +00:00
|
|
|
<?php
|
|
|
|
|
2021-08-21 14:25:23 +00:00
|
|
|
namespace OCA\UPschooling\Db;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
|
|
|
use JsonSerializable;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
2021-08-22 15:03:19 +00:00
|
|
|
class Ticket extends Entity implements JsonSerializable {
|
2021-08-21 14:17:14 +00:00
|
|
|
protected $title;
|
2021-08-22 15:10:23 +00:00
|
|
|
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;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
|
|
|
public function jsonSerialize(): array {
|
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
|
|
|
'title' => $this->title,
|
2021-08-22 15:10:23 +00:00
|
|
|
'description' => $this->description,
|
|
|
|
'helperId' => $this->helperId,
|
|
|
|
'dueDate' => $this->dueDate,
|
|
|
|
'status' => $this->status,
|
2021-08-21 14:17:14 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|