IShareProviderWithNotification.php 560 B

1234567891011121314151617181920212223
  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 IShareProvider
  9. *
  10. * @since 30.0.0
  11. */
  12. interface IShareProviderWithNotification extends IShareProvider {
  13. /**
  14. * Send a mail notification to the recipient of a share
  15. * @param IShare $share
  16. * @return bool True if the mail was sent successfully
  17. * @throws \Exception If the mail could not be sent
  18. * @since 30.0.0
  19. */
  20. public function sendMailNotification(IShare $share): bool;
  21. }