aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Migration/NullOutput.php
blob: 3f4cc38dba8efc4a7b75b7bc2ccb9431d1eaba51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 */
namespace OC\Migration;

use OCP\Migration\IOutput;

/**
 * Class NullOutput
 *
 * A simple IOutput that discards all output
 *
 * @package OC\Migration
 */
class NullOutput implements IOutput {
	public function debug(string $message): void {
	}

	public function info($message): void {
	}

	public function warning($message): void {
	}

	public function startProgress($max = 0): void {
	}

	public function advance($step = 1, $description = ''): void {
	}

	public function finishProgress(): void {
	}
}