AppPasswordCreatedEvent.php 468 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Authentication\Events;
  8. use OCP\Authentication\Token\IToken;
  9. use OCP\EventDispatcher\Event;
  10. class AppPasswordCreatedEvent extends Event {
  11. public function __construct(
  12. private IToken $token,
  13. ) {
  14. parent::__construct();
  15. }
  16. public function getToken(): IToken {
  17. return $this->token;
  18. }
  19. }