Nextcloud-App/lib/Db/MatrixTicket.php

28 lines
711 B
PHP

<?php
namespace OCA\UPschooling\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class MatrixTicket extends Entity implements JsonSerializable
{
protected string $matrixControlRoom;
protected string $matrixAssistedUser; // The ID of the person who created the ticket. Usually the person who needs help.
protected string $matrixHelperUser;
protected string $status;
protected int $version;
public function jsonSerialize(): array
{
return [
'id' => $this->id,
'matrixControlRoom' => $this->matrixControlRoom,
'matrixAssistedUser' => $this->matrixAssistedUser,
'matrixHelperUser' => $this->matrixHelperUser,
'status' => $this->status,
'version' => $this->version,
];
}
}