IProviderWithExpectedRuntime.php 558 B

12345678910111213141516171819202122232425
  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. */
  14. interface IProviderWithExpectedRuntime extends IProvider {
  15. /**
  16. * @return int The expected average runtime of a task in seconds
  17. * @since 28.0.0
  18. */
  19. public function getExpectedRuntime(): int;
  20. }