You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CodesGenerated.php 512B

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. }