1
0

IProvider.php 550 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\UserStatus;
  8. /**
  9. * Interface IProvider
  10. *
  11. * @since 20.0.0
  12. */
  13. interface IProvider {
  14. /**
  15. * Gets the statuses for all users in $users
  16. *
  17. * @param string[] $userIds
  18. * @return array<string, IUserStatus> array key being the userid, users without a status will not be in the returned array
  19. * @since 20.0.0
  20. */
  21. public function getUserStatuses(array $userIds):array;
  22. }