CodesGenerated.php 467 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\TwoFactorBackupCodes\Event;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\IUser;
  10. class CodesGenerated extends Event {
  11. public function __construct(
  12. private IUser $user,
  13. ) {
  14. parent::__construct();
  15. }
  16. /**
  17. * @return IUser
  18. */
  19. public function getUser(): IUser {
  20. return $this->user;
  21. }
  22. }