1
0

UserIdUnassignedEvent.php 600 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\User\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * Emitted after removing the mapping between an external user and an internal userid
  11. * @since 31.0.0
  12. */
  13. class UserIdUnassignedEvent extends Event {
  14. /**
  15. * @since 31.0.0
  16. */
  17. public function __construct(
  18. private readonly string $userId,
  19. ) {
  20. parent::__construct();
  21. }
  22. /**
  23. * @since 31.0.0
  24. */
  25. public function getUserId(): string {
  26. return $this->userId;
  27. }
  28. }