INeedSyncVersionBackend.php 494 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Versions\Versions;
  8. use OCP\Files\File;
  9. /**
  10. * @since 28.0.0
  11. */
  12. interface INeedSyncVersionBackend {
  13. public function createVersionEntity(File $file): void;
  14. public function updateVersionEntity(File $sourceFile, int $revision, array $properties): void;
  15. public function deleteVersionsEntity(File $file): void;
  16. }