From 36ed38170c7ed96a4f69ce05de149eb2e4b897dd Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 25 Sep 2024 17:17:21 +0200 Subject: [PATCH] chore: Remove reference to ILogger Signed-off-by: Louis Chemineau --- tests/stub.phpstub | 70 +++++++++++++--------------------------------- 1 file changed, 19 insertions(+), 51 deletions(-) diff --git a/tests/stub.phpstub b/tests/stub.phpstub index e069ae71..e0234519 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -61,15 +61,15 @@ namespace OCA\Files_Trashbin\Trash { interface ITrashItem extends FileInfo { public function getTrashBackend(): ITrashBackend; - + public function getOriginalLocation(): string; - + public function getDeletedTime(): int; - + public function getTrashPath(): string; - + public function isRootItem(): bool; - + public function getUser(): IUser; public function getTitle(): string; @@ -659,38 +659,6 @@ namespace OCA\DAV\Connector\Sabre { } } -namespace OC\BackgroundJob { - - use OCP\BackgroundJob\IJob; - use OCP\BackgroundJob\IJobList; - use OCP\ILogger; - - abstract class TimedJob implements IJob { - public function execute(IJobList $jobList, ILogger $logger = null) { - } - - abstract protected function run($argument); - - public function setId(int $id) { - } - - public function setLastRun(int $lastRun) { - } - - public function setArgument($argument) { - } - - public function getId() { - } - - public function getLastRun() { - } - - public function getArgument() { - } - } -} - namespace OC\Files\Mount { use OC\Files\Filesystem; use OC\Files\Storage\Storage; @@ -705,10 +673,10 @@ namespace OC\Files\Mount { protected $class; protected $storageId; protected $rootId = null; - + /** @var int|null */ protected $mountId; - + /** * @param string|\OCP\Files\Storage\IStorage $storage * @param string $mountpoint @@ -721,7 +689,7 @@ namespace OC\Files\Mount { public function __construct($storage, $mountpoint, $arguments = null, $loader = null, $mountOptions = null, $mountId = null) { throw new \Exception('stub'); } - + /** * get complete path to the mount point, relative to data/ * @@ -730,7 +698,7 @@ namespace OC\Files\Mount { public function getMountPoint() { throw new \Exception('stub'); } - + /** * Sets the mount point path, relative to data/ * @@ -739,28 +707,28 @@ namespace OC\Files\Mount { public function setMountPoint($mountPoint) { throw new \Exception('stub'); } - + /** * @return \OCP\Files\Storage\IStorage */ public function getStorage() { throw new \Exception('stub'); } - + /** * @return string */ public function getStorageId() { throw new \Exception('stub'); } - + /** * @return int */ public function getNumericStorageId() { throw new \Exception('stub'); } - + /** * @param string $path * @return string @@ -768,14 +736,14 @@ namespace OC\Files\Mount { public function getInternalPath($path) { throw new \Exception('stub'); } - + /** * @param callable $wrapper */ public function wrapStorage($wrapper) { throw new \Exception('stub'); } - + /** * Get a mount option * @@ -786,7 +754,7 @@ namespace OC\Files\Mount { public function getOption($name, $default) { throw new \Exception('stub'); } - + /** * Get all options for the mount * @@ -795,18 +763,18 @@ namespace OC\Files\Mount { public function getOptions() { throw new \Exception('stub'); } - + /** * @return int */ public function getStorageRootId() { throw new \Exception('stub'); } - + public function getMountId() { throw new \Exception('stub'); } - + public function getMountType() { throw new \Exception('stub'); }