1
0

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