FolderScannedEvent.php 645 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Files\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * @since 18.0.0
  11. */
  12. class FolderScannedEvent extends Event {
  13. /** @var string */
  14. private $absolutePath;
  15. /**
  16. * @param string $absolutePath
  17. *
  18. * @since 18.0.0
  19. */
  20. public function __construct(string $absolutePath) {
  21. parent::__construct();
  22. $this->absolutePath = $absolutePath;
  23. }
  24. /**
  25. * @return string
  26. * @since 18.0.0
  27. */
  28. public function getAbsolutePath(): string {
  29. return $this->absolutePath;
  30. }
  31. }