aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Events/BeforeFileDirectDownloadedEvent.php
blob: a79d730e8ffec471afe04facb65f7cb689742e96 (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
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCA\DAV\Events;

use OCP\EventDispatcher\Event;
use OCP\Files\File;

/**
 * @since 22.0.0
 */
class BeforeFileDirectDownloadedEvent extends Event {
	public function __construct(
		private File $file,
	) {
		parent::__construct();
	}

	/**
	 * @return File
	 * @since 22.0.0
	 */
	public function getFile(): File {
		return $this->file;
	}
}