INotifyStorage.php 712 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Files\Storage;
  7. use OCP\Files\Notify\INotifyHandler;
  8. /**
  9. * Storage backend that support active notifications
  10. *
  11. * @since 9.1.0
  12. */
  13. interface INotifyStorage {
  14. /**
  15. * @since 9.1.0
  16. */
  17. public const NOTIFY_ADDED = 1;
  18. /**
  19. * @since 9.1.0
  20. */
  21. public const NOTIFY_REMOVED = 2;
  22. /**
  23. * @since 9.1.0
  24. */
  25. public const NOTIFY_MODIFIED = 3;
  26. /**
  27. * @since 9.1.0
  28. */
  29. public const NOTIFY_RENAMED = 4;
  30. /**
  31. * Start the notification handler for this storage
  32. *
  33. * @return INotifyHandler
  34. *
  35. * @since 12.0.0
  36. */
  37. public function notify(string $path);
  38. }