ShareAcceptedEvent.php 521 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Share\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\Share\IShare;
  10. /**
  11. * @since 28.0.0
  12. */
  13. class ShareAcceptedEvent extends Event {
  14. /**
  15. * @since 28.0.0
  16. */
  17. public function __construct(
  18. private IShare $share,
  19. ) {
  20. parent::__construct();
  21. }
  22. /**
  23. * @since 28.0.0
  24. */
  25. public function getShare(): IShare {
  26. return $this->share;
  27. }
  28. }