1
0

ISetupCheck.php 794 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-only
  6. */
  7. namespace OCP\SetupCheck;
  8. /**
  9. * This interface needs to be implemented if you want to provide custom
  10. * setup checks in your application. The results of these checks will them
  11. * be displayed in the admin overview.
  12. *
  13. * @since 28.0.0
  14. */
  15. interface ISetupCheck {
  16. /**
  17. * @since 28.0.0
  18. * @return string Category id, one of security/system/accounts, or a custom one which will be merged in system
  19. */
  20. public function getCategory(): string;
  21. /**
  22. * @since 28.0.0
  23. * @return string Translated name to display to the user
  24. */
  25. public function getName(): string;
  26. /**
  27. * @since 28.0.0
  28. */
  29. public function run(): SetupResult;
  30. }