IVersionedPreviewFile.php 637 B

12345678910111213141516171819202122232425
  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\Preview;
  8. /**
  9. * Marks files that should keep multiple preview "versions" for the same file id
  10. *
  11. * Examples of this are files where the storage backend provides versioning, for those
  12. * files, we dont have fileids for the different versions but still need to be able to generate
  13. * previews for all versions
  14. *
  15. * @since 17.0.0
  16. */
  17. interface IVersionedPreviewFile {
  18. /**
  19. * @return string
  20. * @since 17.0.0
  21. */
  22. public function getPreviewVersion(): string;
  23. }