AppEnableEvent.php 759 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\App\Events;
  8. use OCP\EventDispatcher\Event;
  9. /**
  10. * @since 27.0.0
  11. */
  12. class AppEnableEvent extends Event {
  13. private string $appId;
  14. /** @var string[] */
  15. private array $groupIds;
  16. /**
  17. * @param string[] $groupIds
  18. * @since 27.0.0
  19. */
  20. public function __construct(string $appId, array $groupIds = []) {
  21. parent::__construct();
  22. $this->appId = $appId;
  23. $this->groupIds = $groupIds;
  24. }
  25. /**
  26. * @since 27.0.0
  27. */
  28. public function getAppId(): string {
  29. return $this->appId;
  30. }
  31. /**
  32. * @since 27.0.0
  33. */
  34. public function getGroupIds(): array {
  35. return $this->groupIds;
  36. }
  37. }