1
0

ICacheEvent.php 709 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Files\Cache;
  8. use OCP\Files\Storage\IStorage;
  9. /**
  10. * @since 16.0.0
  11. */
  12. interface ICacheEvent {
  13. /**
  14. * @return IStorage
  15. * @since 16.0.0
  16. */
  17. public function getStorage(): IStorage;
  18. /**
  19. * @return string
  20. * @since 16.0.0
  21. */
  22. public function getPath(): string;
  23. /**
  24. * @param string $path
  25. * @since 19.0.0
  26. */
  27. public function setPath(string $path): void;
  28. /**
  29. * @return int
  30. * @since 16.0.0
  31. */
  32. public function getFileId(): int;
  33. /**
  34. * @return int
  35. * @since 21.0.0
  36. */
  37. public function getStorageId(): int;
  38. }