// 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, ]; } }