1
0

IProviderWithUserId.php 572 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 providers to access the user that initiated the task being run.
  10. * @since 28.0.0
  11. * @template T of ITaskType
  12. * @template-extends IProvider<T>
  13. * @deprecated 30.0.0
  14. */
  15. interface IProviderWithUserId extends IProvider {
  16. /**
  17. * @param ?string $userId the current user's id
  18. * @since 28.0.0
  19. */
  20. public function setUserId(?string $userId): void;
  21. }