IProviderWithExpectedRuntime.php 580 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\TextProcessing;
  8. /**
  9. * This interface allows the system to learn the provider's expected runtime
  10. * @since 28.0.0
  11. * @template T of ITaskType
  12. * @template-extends IProvider<T>
  13. * @deprecated 30.0.0
  14. */
  15. interface IProviderWithExpectedRuntime extends IProvider {
  16. /**
  17. * @return int The expected average runtime of a task in seconds
  18. * @since 28.0.0
  19. */
  20. public function getExpectedRuntime(): int;
  21. }