TwoFactorProviderUserDeleted.php 674 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Authentication\TwoFactorAuth;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\IUser;
  10. /**
  11. * @since 28.0.0
  12. */
  13. final class TwoFactorProviderUserDeleted extends Event {
  14. /**
  15. * @since 28.0.0
  16. */
  17. public function __construct(
  18. private IUser $user,
  19. private string $providerId,
  20. ) {
  21. parent::__construct();
  22. }
  23. /**
  24. * @since 28.0.0
  25. */
  26. public function getUser(): IUser {
  27. return $this->user;
  28. }
  29. /**
  30. * @since 28.0.0
  31. */
  32. public function getProviderId(): string {
  33. return $this->providerId;
  34. }
  35. }