2021-09-18 17:28:10 +00:00
|
|
|
<?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
|
2021-09-18 17:28:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
2021-09-18 17:28:10 +00:00
|
|
|
class MatrixUser extends Entity implements JsonSerializable {
|
2023-10-11 19:55:03 +00:00
|
|
|
protected string $userId = "";
|
|
|
|
protected string $matrixUser = "";
|
|
|
|
protected string $matrixToken = "";
|
2021-09-18 17:28:10 +00:00
|
|
|
|
2022-02-26 18:40:21 +00:00
|
|
|
public function jsonSerialize(): array
|
|
|
|
{
|
2021-09-18 17:28:10 +00:00
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
2022-02-26 18:40:21 +00:00
|
|
|
'userId' => $this->userId,
|
|
|
|
'matrixUser' => $this->matrixUser,
|
|
|
|
'matrixToken' => $this->matrixToken,
|
2021-09-18 17:28:10 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|