AppUpdateEvent.php 530 B

12345678910111213141516171819202122232425262728293031323334
  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 AppUpdateEvent extends Event {
  13. private string $appId;
  14. /**
  15. * @since 27.0.0
  16. */
  17. public function __construct(string $appId) {
  18. parent::__construct();
  19. $this->appId = $appId;
  20. }
  21. /**
  22. * @since 27.0.0
  23. */
  24. public function getAppId(): string {
  25. return $this->appId;
  26. }
  27. }