BeforeFileSystemSetupEvent.php 568 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Files\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\IUser;
  10. /**
  11. * Event triggered before the file system is setup
  12. *
  13. * @since 31.0.0
  14. */
  15. class BeforeFileSystemSetupEvent extends Event {
  16. /**
  17. * @since 31.0.0
  18. */
  19. public function __construct(
  20. private IUser $user,
  21. ) {
  22. parent::__construct();
  23. }
  24. /**
  25. * @since 31.0.0
  26. */
  27. public function getUser(): IUser {
  28. return $this->user;
  29. }
  30. }