2018-04-16 11:02:50 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-04-25 14:24:23 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-04-16 11:02:50 -04:00
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-04-16 11:02:50 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\Files_Trashbin\Sabre;
|
|
|
|
|
|
2018-09-03 12:30:10 -04:00
|
|
|
use OCP\Files\FileInfo;
|
2024-04-11 20:39:59 -04:00
|
|
|
use OCP\IUser;
|
2018-09-03 12:30:10 -04:00
|
|
|
|
2018-04-16 11:02:50 -04:00
|
|
|
interface ITrash {
|
|
|
|
|
public function restore(): bool;
|
2018-04-17 16:22:41 -04:00
|
|
|
|
|
|
|
|
public function getFilename(): string;
|
|
|
|
|
|
|
|
|
|
public function getOriginalLocation(): string;
|
2018-05-08 03:08:43 -04:00
|
|
|
|
2019-10-02 10:36:53 -04:00
|
|
|
public function getTitle(): string;
|
|
|
|
|
|
2018-05-08 03:08:43 -04:00
|
|
|
public function getDeletionTime(): int;
|
2018-05-10 10:12:33 -04:00
|
|
|
|
2024-04-11 20:39:59 -04:00
|
|
|
public function getDeletedBy(): ?IUser;
|
|
|
|
|
|
2023-01-23 09:43:39 -05:00
|
|
|
public function getSize(): int|float;
|
2018-05-10 10:03:28 -04:00
|
|
|
|
|
|
|
|
public function getFileId(): int;
|
2018-09-03 12:30:10 -04:00
|
|
|
|
|
|
|
|
public function getFileInfo(): FileInfo;
|
2018-04-16 11:02:50 -04:00
|
|
|
}
|