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
|
|
|
|
|
|
|
|
/**
|
2016-04-22 09:35:39 -04:00
|
|
|
* Interface IOutput
|
|
|
|
|
*
|
|
|
|
|
* @since 9.1.0
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
2016-04-22 09:35:39 -04:00
|
|
|
interface IOutput {
|
2023-10-31 07:06:09 -04:00
|
|
|
/**
|
|
|
|
|
* @param string $message
|
|
|
|
|
* @return void
|
|
|
|
|
* @since 28.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function debug(string $message): void;
|
|
|
|
|
|
2016-04-22 09:35:39 -04:00
|
|
|
/**
|
|
|
|
|
* @param string $message
|
2022-08-22 11:59:26 -04:00
|
|
|
* @return void
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
|
|
|
|
*/
|
|
|
|
|
public function info($message);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param string $message
|
2022-08-22 11:59:26 -04:00
|
|
|
* @return void
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
|
|
|
|
*/
|
|
|
|
|
public function warning($message);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param int $max
|
2022-08-22 11:59:26 -04:00
|
|
|
* @return void
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
|
|
|
|
*/
|
|
|
|
|
public function startProgress($max = 0);
|
2014-06-10 05:47:27 -04:00
|
|
|
|
|
|
|
|
/**
|
2016-04-22 09:35:39 -04:00
|
|
|
* @param int $step
|
2016-04-27 06:21:31 -04:00
|
|
|
* @param string $description
|
2022-08-22 11:59:26 -04:00
|
|
|
* @return void
|
2016-04-22 09:35:39 -04:00
|
|
|
* @since 9.1.0
|
2014-06-10 05:47:27 -04:00
|
|
|
*/
|
2016-04-27 06:21:31 -04:00
|
|
|
public function advance($step = 1, $description = '');
|
2014-06-10 05:47:27 -04:00
|
|
|
|
|
|
|
|
/**
|
2022-08-22 11:59:26 -04:00
|
|
|
* @return void
|
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
|
|
|
public function finishProgress();
|
2014-06-10 05:47:27 -04:00
|
|
|
}
|