2018-03-25 15:04:03 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-25 15:04:03 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-25 15:04:03 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-03-25 15:04:03 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Group\Backend;
|
|
|
|
|
|
|
|
|
|
/**
|
2022-06-17 05:23:03 -04:00
|
|
|
* @brief Optional interface for group backends
|
2018-03-25 15:04:03 -04:00
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IGroupDetailsBackend {
|
|
|
|
|
/**
|
2022-06-17 05:23:03 -04:00
|
|
|
* @brief Get additional details for a group, for example the display name.
|
|
|
|
|
*
|
|
|
|
|
* The array returned can be empty when no additional information is available
|
|
|
|
|
* for the group.
|
|
|
|
|
*
|
|
|
|
|
* @return array{displayName?: string}
|
2018-03-25 15:04:03 -04:00
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getGroupDetails(string $gid): array;
|
|
|
|
|
}
|