Nextcloud-App/lib/Db/MatrixTicket.php

28 lines
658 B
PHP
Raw Permalink Normal View History

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