2014-06-10 05:47:27 -04:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2014-06-10 05:47:27 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
2016-04-22 09:35:39 -04:00
|
|
|
namespace OCP\Migration;
|
2014-06-10 05:47:27 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Repair step
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
2016-04-22 09:35:39 -04:00
|
|
|
interface IRepairStep {
|
2014-06-10 05:47:27 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the step's name
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
|
|
|
|
public function getName();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Run repair step.
|
|
|
|
|
* Must throw exception on error.
|
|
|
|
|
*
|
2016-05-31 05:50:06 -04:00
|
|
|
* @param IOutput $output
|
2014-06-10 05:47:27 -04:00
|
|
|
* @throws \Exception in case of failure
|
2016-05-31 05:50:06 -04:00
|
|
|
* @since 9.1.0
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
2016-04-22 09:35:39 -04:00
|
|
|
public function run(IOutput $output);
|
2014-06-10 05:47:27 -04:00
|
|
|
}
|