1
0

ITrash.php 624 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Trashbin\Sabre;
  8. use OCP\Files\FileInfo;
  9. use OCP\IUser;
  10. interface ITrash {
  11. public function restore(): bool;
  12. public function getFilename(): string;
  13. public function getOriginalLocation(): string;
  14. public function getTitle(): string;
  15. public function getDeletionTime(): int;
  16. public function getDeletedBy(): ?IUser;
  17. public function getSize(): int|float;
  18. public function getFileId(): int;
  19. public function getFileInfo(): FileInfo;
  20. }