NullOutput.php 635 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. namespace OC\Migration;
  7. use OCP\Migration\IOutput;
  8. /**
  9. * Class NullOutput
  10. *
  11. * A simple IOutput that discards all output
  12. *
  13. * @package OC\Migration
  14. */
  15. class NullOutput implements IOutput {
  16. public function debug(string $message): void {
  17. }
  18. public function info($message): void {
  19. }
  20. public function warning($message): void {
  21. }
  22. public function startProgress($max = 0): void {
  23. }
  24. public function advance($step = 1, $description = ''): void {
  25. }
  26. public function finishProgress(): void {
  27. }
  28. }