Nextcloud-App/lib/Db/MatrixUser.php

35 lines
861 B
PHP
Raw Normal View History

<?php
2023-10-11 19:55:03 +00:00
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;
2023-10-11 19:55:03 +00:00
/**
* @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 {
2023-10-11 19:55:03 +00:00
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,
];
}
}