aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Events/BeforeFileSystemSetupEvent.php
blob: 23791aa6ec107fdaabc5721e8630e52977034bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 */

namespace OCP\Files\Events;

use OCP\EventDispatcher\Event;
use OCP\IUser;

/**
 * Event triggered before the file system is setup
 *
 * @since 31.0.0
 */
class BeforeFileSystemSetupEvent extends Event {
	/**
	 * @since 31.0.0
	 */
	public function __construct(
		private IUser $user,
	) {
		parent::__construct();
	}

	/**
	 * @since 31.0.0
	 */
	public function getUser(): IUser {
		return $this->user;
	}
}