ICloudId.php 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Federation;
  8. /**
  9. * Parsed federated cloud id
  10. *
  11. * @since 12.0.0
  12. */
  13. interface ICloudId {
  14. /**
  15. * The remote cloud id
  16. *
  17. * @return string
  18. * @since 12.0.0
  19. */
  20. public function getId(): string;
  21. /**
  22. * Get a clean representation of the cloud id for display
  23. *
  24. * @return string
  25. * @since 12.0.0
  26. */
  27. public function getDisplayId(): string;
  28. /**
  29. * The username on the remote server
  30. *
  31. * @return string
  32. * @since 12.0.0
  33. */
  34. public function getUser(): string;
  35. /**
  36. * The base address of the remote server
  37. *
  38. * @return string
  39. * @since 12.0.0
  40. */
  41. public function getRemote(): string;
  42. }