ISizeEstimationMigrator.php 541 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\UserMigration;
  8. use OCP\IUser;
  9. /**
  10. * @since 25.0.0
  11. */
  12. interface ISizeEstimationMigrator {
  13. /**
  14. * Returns an estimate of the exported data size in KiB.
  15. * Should be fast, favor performance over accuracy.
  16. *
  17. * @since 25.0.0
  18. * @since 27.0.0 return value may overflow from int to float
  19. */
  20. public function getEstimatedExportSize(IUser $user): int|float;
  21. }