1
0

IProviderWithUserId.php 550 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 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. */
  14. interface IProviderWithUserId extends IProvider {
  15. /**
  16. * @param ?string $userId the current user's id
  17. * @since 28.0.0
  18. */
  19. public function setUserId(?string $userId): void;
  20. }