1
0

IRepairStep.php 576 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Migration;
  8. /**
  9. * Repair step
  10. * @since 9.1.0
  11. */
  12. interface IRepairStep {
  13. /**
  14. * Returns the step's name
  15. *
  16. * @return string
  17. * @since 9.1.0
  18. */
  19. public function getName();
  20. /**
  21. * Run repair step.
  22. * Must throw exception on error.
  23. *
  24. * @param IOutput $output
  25. * @throws \Exception in case of failure
  26. * @since 9.1.0
  27. */
  28. public function run(IOutput $output);
  29. }