TwoFactorProviderDisabled.php 775 B

123456789101112131415161718192021222324252627282930313233343536
  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. /**
  10. * @since 20.0.0
  11. * @deprecated 28.0.0 Use \OCP\Authentication\TwoFactorAuth\TwoFactorProviderUserDeleted instead
  12. * @see \OCP\Authentication\TwoFactorAuth\TwoFactorProviderUserDeleted
  13. */
  14. final class TwoFactorProviderDisabled extends Event {
  15. /** @var string */
  16. private $providerId;
  17. /**
  18. * @since 20.0.0
  19. */
  20. public function __construct(string $providerId) {
  21. parent::__construct();
  22. $this->providerId = $providerId;
  23. }
  24. /**
  25. * @since 20.0.0
  26. */
  27. public function getProviderId(): string {
  28. return $this->providerId;
  29. }
  30. }