2022-05-24 04:02:15 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-05-24 04:02:15 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCP\UserMigration;
|
|
|
|
|
|
|
|
|
|
use OCP\IUser;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ISizeEstimationMigrator {
|
|
|
|
|
/**
|
|
|
|
|
* Returns an estimate of the exported data size in KiB.
|
|
|
|
|
* Should be fast, favor performance over accuracy.
|
|
|
|
|
*
|
|
|
|
|
* @since 25.0.0
|
2023-05-05 20:59:57 -04:00
|
|
|
* @since 27.0.0 return value may overflow from int to float
|
2022-05-24 04:02:15 -04:00
|
|
|
*/
|
2023-05-05 20:59:57 -04:00
|
|
|
public function getEstimatedExportSize(IUser $user): int|float;
|
2022-05-24 04:02:15 -04:00
|
|
|
}
|