4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Console\Output;
14 use Symfony\Component\Console\Formatter\OutputFormatter;
15 use Symfony\Component\Console\Formatter\OutputFormatterInterface;
18 * NullOutput suppresses all output.
20 * $output = new NullOutput();
22 * @author Fabien Potencier <fabien@symfony.com>
23 * @author Tobias Schultze <http://tobion.de>
25 class NullOutput implements OutputInterface
30 public function setFormatter(OutputFormatterInterface $formatter)
38 public function getFormatter()
40 // to comply with the interface we must return a OutputFormatterInterface
41 return new OutputFormatter();
47 public function setDecorated($decorated)
55 public function isDecorated()
63 public function setVerbosity($level)
71 public function getVerbosity()
73 return self::VERBOSITY_QUIET;
79 public function isQuiet()
87 public function isVerbose()
95 public function isVeryVerbose()
103 public function isDebug()
111 public function writeln($messages, $options = self::OUTPUT_NORMAL)
119 public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)