2021-02-09 11:51:09 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-06-04 21:52:51 +02:00
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-02-09 11:51:09 +01:00
|
|
|
*/
|
|
|
|
namespace OC\Authentication\Events;
|
|
|
|
|
2024-01-11 10:14:36 +01:00
|
|
|
use OCP\Authentication\Token\IToken;
|
2021-02-09 11:51:09 +01:00
|
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
|
|
|
|
class AppPasswordCreatedEvent extends Event {
|
2024-01-11 10:14:36 +01:00
|
|
|
public function __construct(
|
|
|
|
private IToken $token,
|
|
|
|
) {
|
2021-02-09 11:51:09 +01:00
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getToken(): IToken {
|
|
|
|
return $this->token;
|
|
|
|
}
|
|
|
|
}
|