0
0
mirror of https://github.com/nextcloud/server.git synced 2024-11-14 20:36:50 +00:00
nextcloud_server/lib/public/Files/Events/BeforeFileSystemSetupEvent.php
Côme Chilliet b80bc81579
chore: Use SPDX headers and property promotion in new files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-23 18:13:29 +02:00

37 lines
568 B
PHP

<?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;
}
}