2021-07-22 05:41:29 -04:00
|
|
|
<?php
|
|
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2021-07-22 05:41:29 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-07-22 05:41:29 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Settings;
|
|
|
|
|
|
2026-02-12 06:24:33 -05:00
|
|
|
use JsonSerializable;
|
2021-07-22 05:41:29 -04:00
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @method setGroupId(string $groupId)
|
|
|
|
|
* @method setClass(string $class)
|
2026-02-12 06:24:33 -05:00
|
|
|
* @method string getGroupId()
|
|
|
|
|
* @method string getClass()
|
2021-07-22 05:41:29 -04:00
|
|
|
*/
|
2026-02-12 06:24:33 -05:00
|
|
|
class AuthorizedGroup extends Entity implements JsonSerializable {
|
|
|
|
|
public $id;
|
2021-07-22 05:41:29 -04:00
|
|
|
|
2026-02-12 06:24:33 -05:00
|
|
|
protected ?string $groupId = null;
|
2021-07-22 05:41:29 -04:00
|
|
|
|
2026-02-12 06:24:33 -05:00
|
|
|
protected ?string $class = null;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return array<string, mixed>
|
|
|
|
|
*/
|
2021-07-22 05:41:29 -04:00
|
|
|
public function jsonSerialize(): array {
|
|
|
|
|
return [
|
2025-12-18 16:13:30 -05:00
|
|
|
'id' => $this->getId(),
|
2021-07-22 05:41:29 -04:00
|
|
|
'group_id' => $this->groupId,
|
|
|
|
|
'class' => $this->class
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|