nextcloud/lib/private/Settings/AuthorizedGroup.php
provokateurin e454cc6765
refactor(settings): Modernize authorized group classes
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-02-17 06:43:16 +01:00

37 lines
728 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Settings;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
/**
* @method setGroupId(string $groupId)
* @method setClass(string $class)
* @method string getGroupId()
* @method string getClass()
*/
class AuthorizedGroup extends Entity implements JsonSerializable {
public $id;
protected ?string $groupId = null;
protected ?string $class = null;
/**
* @return array<string, mixed>
*/
public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'group_id' => $this->groupId,
'class' => $this->class
];
}
}