1
0

ARemoteWipeEvent.php 518 B

1234567891011121314151617181920212223242526
  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 OC\Authentication\Events;
  8. use OC\Authentication\Token\IToken;
  9. use OCP\EventDispatcher\Event;
  10. abstract class ARemoteWipeEvent extends Event {
  11. /** @var IToken */
  12. private $token;
  13. public function __construct(IToken $token) {
  14. parent::__construct();
  15. $this->token = $token;
  16. }
  17. public function getToken(): IToken {
  18. return $this->token;
  19. }
  20. }