1
0

ICreateNamedGroupBackend.php 588 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Group\Backend;
  8. /**
  9. * @since 30.0.0
  10. */
  11. interface ICreateNamedGroupBackend {
  12. /**
  13. * Tries to create a group from its name.
  14. *
  15. * If group name already exists, null is returned.
  16. * Otherwise, new group ID is returned.
  17. *
  18. * @param string $name Group name
  19. * @return ?string Group ID in case of success, null in case of failure
  20. * @since 30.0.0
  21. */
  22. public function createGroup(string $name): ?string;
  23. }