Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a method to get estimated export size in IMigrator
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed May 30, 2022
commit f20b7e576484d9d7654763e60707115d93655df9
8 changes: 8 additions & 0 deletions lib/public/UserMigration/IMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ public function getDescription(): string;
*/
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
Expand Down