1
0

IShareProviderSupportsAccept.php 644 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Share;
  7. /**
  8. * Interface IShareProviderSupportsAccept
  9. *
  10. * This interface allows to define IShareProvider that can handle the `acceptShare` method,
  11. * which is available since Nextcloud 17.
  12. *
  13. * @since 30.0.0
  14. */
  15. interface IShareProviderSupportsAccept extends IShareProvider {
  16. /**
  17. * Accept a share.
  18. *
  19. * @param IShare $share
  20. * @param string $recipient
  21. * @return IShare The share object
  22. * @since 30.0.0
  23. */
  24. public function acceptShare(IShare $share, string $recipient): IShare;
  25. }