From c16b72f588ffeae0ac58e646d0574b9121bfe0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 28 Apr 2022 11:23:26 +0200 Subject: [PATCH] Add a method to get estimated export size in IMigrator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/public/UserMigration/IMigrator.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/public/UserMigration/IMigrator.php b/lib/public/UserMigration/IMigrator.php index d02e5df0683..b7ad382bef2 100644 --- a/lib/public/UserMigration/IMigrator.php +++ b/lib/public/UserMigration/IMigrator.php @@ -87,6 +87,14 @@ interface IMigrator { */ public function getVersion(): int; + /** + * Returns an estimate of the exported data size in KiB. + * Should be fast, favor performance over accuracy. + * + * @since 24.0.0 + */ + public function getExportEstimatedSize(): int; + /** * Checks whether it is able to import a version of the export format for this migrator * Use $importSource->getMigratorVersion($this->getId()) to get the version from the archive