2021-02-10 07:53:05 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2021-06-04 15:52:51 -04:00
|
|
|
|
2021-02-10 07:53:05 -05:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-02-10 07:53:05 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCA\DAV\Events;
|
|
|
|
|
|
|
|
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
|
use OCP\Files\File;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 22.0.0
|
|
|
|
|
*/
|
|
|
|
|
class BeforeFileDirectDownloadedEvent extends Event {
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private File $file,
|
|
|
|
|
) {
|
2021-02-10 07:53:05 -05:00
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return File
|
|
|
|
|
* @since 22.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getFile(): File {
|
|
|
|
|
return $this->file;
|
|
|
|
|
}
|
|
|
|
|
}
|