1
0

AuthorizedGroup.php 648 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Settings;
  7. use OCP\AppFramework\Db\Entity;
  8. /**
  9. * @method setGroupId(string $groupId)
  10. * @method setClass(string $class)
  11. * @method getGroupId(): string
  12. * @method getClass(): string
  13. */
  14. class AuthorizedGroup extends Entity implements \JsonSerializable {
  15. /** @var string $group_id */
  16. protected $groupId;
  17. /** @var string $class */
  18. protected $class;
  19. public function jsonSerialize(): array {
  20. return [
  21. 'id' => $this->id,
  22. 'group_id' => $this->groupId,
  23. 'class' => $this->class
  24. ];
  25. }
  26. }