ShareDeletedEvent.php 652 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 OCP\EventDispatcher\Event;
  9. use OCP\Share\IShare;
  10. /**
  11. * @since 21.0.0
  12. */
  13. class ShareDeletedEvent extends Event {
  14. /** @var IShare */
  15. private $share;
  16. /**
  17. *
  18. * @param IShare $share
  19. * @param IShare[] $children
  20. *
  21. * @since 21.0.0
  22. */
  23. public function __construct(IShare $share) {
  24. parent::__construct();
  25. $this->share = $share;
  26. }
  27. /**
  28. * @return IShare
  29. * @since 21.0.0
  30. */
  31. public function getShare(): IShare {
  32. return $this->share;
  33. }
  34. }