NullOutput.php 713 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Console\Output;
  11. /**
  12. * NullOutput suppresses all output.
  13. *
  14. * $output = new NullOutput();
  15. *
  16. * @author Fabien Potencier <fabien@symfony.com>
  17. *
  18. * @api
  19. */
  20. class NullOutput extends Output
  21. {
  22. /**
  23. * Writes a message to the output.
  24. *
  25. * @param string $message A message to write to the output
  26. * @param Boolean $newline Whether to add a newline or not
  27. */
  28. public function doWrite($message, $newline)
  29. {
  30. }
  31. }