IShareProviderWithNotification.php 608 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Share;
  8. /**
  9. * Interface IShareProvider
  10. *
  11. * @since 30.0.0
  12. */
  13. interface IShareProviderWithNotification extends IShareProvider {
  14. /**
  15. * Send a mail notification to the recipient of a share
  16. * @param IShare $share
  17. * @return bool True if the mail was sent successfully
  18. * @throws \Exception If the mail could not be sent
  19. * @since 30.0.0
  20. */
  21. public function sendMailNotification(IShare $share): bool;
  22. }