1
0

BeforeFileDirectDownloadedEvent.php 538 B

1234567891011121314151617181920212223242526272829303132
  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. private $file;
  15. public function __construct(File $file) {
  16. parent::__construct();
  17. $this->file = $file;
  18. }
  19. /**
  20. * @return File
  21. * @since 22.0.0
  22. */
  23. public function getFile(): File {
  24. return $this->file;
  25. }
  26. }