SubAdminRemovedEvent.php 744 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. use OCP\IUser;
  11. /**
  12. * @since 21.0.0
  13. */
  14. class SubAdminRemovedEvent extends Event {
  15. /** @var IGroup */
  16. private $group;
  17. /*** @var IUser */
  18. private $user;
  19. /**
  20. * @since 21.0.0
  21. */
  22. public function __construct(IGroup $group, IUser $user) {
  23. parent::__construct();
  24. $this->group = $group;
  25. $this->user = $user;
  26. }
  27. /**
  28. * @since 21.0.0
  29. */
  30. public function getGroup(): IGroup {
  31. return $this->group;
  32. }
  33. /**
  34. * @since 21.0.0
  35. */
  36. public function getUser(): IUser {
  37. return $this->user;
  38. }
  39. }