WipeTokenException.php 534 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Authentication\Exceptions;
  8. use OCP\Authentication\Token\IToken;
  9. /**
  10. * @since 28.0.0
  11. */
  12. class WipeTokenException extends InvalidTokenException {
  13. /**
  14. * @since 28.0.0
  15. */
  16. public function __construct(
  17. private IToken $token,
  18. ) {
  19. parent::__construct();
  20. }
  21. /**
  22. * @since 28.0.0
  23. */
  24. public function getToken(): IToken {
  25. return $this->token;
  26. }
  27. }