2018-07-31 04:54:00 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-30 14:13:41 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-07-31 04:54:00 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\TwoFactorBackupCodes\Event;
|
|
|
|
|
|
2019-05-28 13:46:36 -04:00
|
|
|
use OCP\EventDispatcher\Event;
|
2018-07-31 04:54:00 -04:00
|
|
|
use OCP\IUser;
|
|
|
|
|
|
|
|
|
|
class CodesGenerated extends Event {
|
|
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private IUser $user,
|
|
|
|
|
) {
|
2019-05-28 13:46:36 -04:00
|
|
|
parent::__construct();
|
2018-07-31 04:54:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return IUser
|
|
|
|
|
*/
|
|
|
|
|
public function getUser(): IUser {
|
|
|
|
|
return $this->user;
|
|
|
|
|
}
|
|
|
|
|
}
|