Nextcloud-App/lib/Db/MatrixUser.php

35 lines
861 B
PHP

<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: BVSC e.V. <no@example.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace OCA\UPschooling\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
/**
* @method getId(): int
* @method getUserId(): string
* @method setUserId(string $userId): void
* @method getMatrixUser(): string
* @method setMatrixUser(string $matrixUser): void
* @method getMatrixToken(): string
* @method setMatrixToken(string $matrixToken): void
*/
class MatrixUser extends Entity implements JsonSerializable {
protected string $userId = "";
protected string $matrixUser = "";
protected string $matrixToken = "";
public function jsonSerialize(): array
{
return [
'id' => $this->id,
'userId' => $this->userId,
'matrixUser' => $this->matrixUser,
'matrixToken' => $this->matrixToken,
];
}
}