VerifyMountPointEvent.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Share\Events;
  8. use OC\Files\View;
  9. use OCP\EventDispatcher\Event;
  10. use OCP\Share\IShare;
  11. /**
  12. * @since 19.0.0
  13. */
  14. class VerifyMountPointEvent extends Event {
  15. /** @var IShare */
  16. private $share;
  17. /** @var View */
  18. private $view;
  19. /** @var string */
  20. private $parent;
  21. /**
  22. * @since 19.0.0
  23. */
  24. public function __construct(IShare $share,
  25. View $view,
  26. string $parent) {
  27. parent::__construct();
  28. $this->share = $share;
  29. $this->view = $view;
  30. $this->parent = $parent;
  31. }
  32. /**
  33. * @since 19.0.0
  34. */
  35. public function getShare(): IShare {
  36. return $this->share;
  37. }
  38. /**
  39. * @since 19.0.0
  40. */
  41. public function getView(): View {
  42. return $this->view;
  43. }
  44. /**
  45. * @since 19.0.0
  46. */
  47. public function getParent(): string {
  48. return $this->parent;
  49. }
  50. /**
  51. * @since 19.0.0
  52. */
  53. public function setParent(string $parent): void {
  54. $this->parent = $parent;
  55. }
  56. }