TYPO3  7.6
NullOutput.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
12 namespace Symfony\Component\Console\Output;
13 
16 
27 class NullOutput implements OutputInterface
28 {
32  public function setFormatter(OutputFormatterInterface $formatter)
33  {
34  // do nothing
35  }
36 
40  public function getFormatter()
41  {
42  // to comply with the interface we must return a OutputFormatterInterface
43  return new OutputFormatter();
44  }
45 
49  public function setDecorated($decorated)
50  {
51  // do nothing
52  }
53 
57  public function isDecorated()
58  {
59  return false;
60  }
61 
65  public function setVerbosity($level)
66  {
67  // do nothing
68  }
69 
73  public function getVerbosity()
74  {
75  return self::VERBOSITY_QUIET;
76  }
77 
78  public function isQuiet()
79  {
80  return true;
81  }
82 
83  public function isVerbose()
84  {
85  return false;
86  }
87 
88  public function isVeryVerbose()
89  {
90  return false;
91  }
92 
93  public function isDebug()
94  {
95  return false;
96  }
97 
101  public function writeln($messages, $type = self::OUTPUT_NORMAL)
102  {
103  // do nothing
104  }
105 
109  public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
110  {
111  // do nothing
112  }
113 }