1
0

AppDisableEvent.php 586 B

123456789101112131415161718192021222324252627282930313233343536
  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. * This event is triggered when an app is disabled.
  11. *
  12. * @since 27.0.0
  13. */
  14. class AppDisableEvent extends Event {
  15. private string $appId;
  16. /**
  17. * @since 27.0.0
  18. */
  19. public function __construct(string $appId) {
  20. parent::__construct();
  21. $this->appId = $appId;
  22. }
  23. /**
  24. * @since 27.0.0
  25. */
  26. public function getAppId(): string {
  27. return $this->appId;
  28. }
  29. }