1
0

CodesGenerated.php 512 B

123456789101112131415161718192021222324252627282930
  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. /** @var IUser */
  12. private $user;
  13. public function __construct(IUser $user) {
  14. parent::__construct();
  15. $this->user = $user;
  16. }
  17. /**
  18. * @return IUser
  19. */
  20. public function getUser(): IUser {
  21. return $this->user;
  22. }
  23. }