1
0

ShareCreatedEvent.php 570 B

123456789101112131415161718192021222324252627282930313233343536
  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\Share\Events;
  8. use OCP\EventDispatcher\Event;
  9. use OCP\Share\IShare;
  10. /**
  11. * @since 18.0.0
  12. */
  13. class ShareCreatedEvent extends Event {
  14. /** @var IShare */
  15. private $share;
  16. /**
  17. * @since 18.0.0
  18. */
  19. public function __construct(IShare $share) {
  20. parent::__construct();
  21. $this->share = $share;
  22. }
  23. /**
  24. * @since 18.0.0
  25. */
  26. public function getShare(): IShare {
  27. return $this->share;
  28. }
  29. }