diff options
Diffstat (limited to 'lib/private/Migration/NullOutput.php')
-rw-r--r-- | lib/private/Migration/NullOutput.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/private/Migration/NullOutput.php b/lib/private/Migration/NullOutput.php new file mode 100644 index 00000000000..8db7b950af8 --- /dev/null +++ b/lib/private/Migration/NullOutput.php @@ -0,0 +1,36 @@ +<?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 { + } +} |