1
0

BeforeFileDirectDownloadedEvent.php 512 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\Files\File;
  10. /**
  11. * @since 22.0.0
  12. */
  13. class BeforeFileDirectDownloadedEvent extends Event {
  14. public function __construct(
  15. private File $file,
  16. ) {
  17. parent::__construct();
  18. }
  19. /**
  20. * @return File
  21. * @since 22.0.0
  22. */
  23. public function getFile(): File {
  24. return $this->file;
  25. }
  26. }