PluginProbe
Depicter — Popup & Slider Builder / 1.2.0
Depicter — Popup & Slider Builder v1.2.0
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / vendor / symfony / console / Output / NullOutput.php

NullOutput.php in Depicter — Popup & Slider Builder 1.2.0, at vendor/symfony/console/Output/NullOutput.php

129 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
14 use Symfony\Component\Console\Formatter\NullOutputFormatter;
15 use Symfony\Component\Console\Formatter\OutputFormatterInterface;
16
17 /**
18 * NullOutput suppresses all output.
19 *
20 * $output = new NullOutput();
21 *
22 * @author Fabien Potencier <fabien@symfony.com>
23 * @author Tobias Schultze <http://tobion.de>
24 */
25 class NullOutput implements OutputInterface
26 {
27 private $formatter;
28
29 /**
30 * {@inheritdoc}
31 */
32 public function setFormatter(OutputFormatterInterface $formatter)
33 {
34 // do nothing
35 }
36
37 /**
38 * {@inheritdoc}
39 */
40 public function getFormatter()
41 {
42 if ($this->formatter) {
43 return $this->formatter;
44 }
45 // to comply with the interface we must return a OutputFormatterInterface
46 return $this->formatter = new NullOutputFormatter();
47 }
48
49 /**
50 * {@inheritdoc}
51 */
52 public function setDecorated(bool $decorated)
53 {
54 // do nothing
55 }
56
57 /**
58 * {@inheritdoc}
59 */
60 public function isDecorated()
61 {
62 return false;
63 }
64
65 /**
66 * {@inheritdoc}
67 */
68 public function setVerbosity(int $level)
69 {
70 // do nothing
71 }
72
73 /**
74 * {@inheritdoc}
75 */
76 public function getVerbosity()
77 {
78 return self::VERBOSITY_QUIET;
79 }
80
81 /**
82 * {@inheritdoc}
83 */
84 public function isQuiet()
85 {
86 return true;
87 }
88
89 /**
90 * {@inheritdoc}
91 */
92 public function isVerbose()
93 {
94 return false;
95 }
96
97 /**
98 * {@inheritdoc}
99 */
100 public function isVeryVerbose()
101 {
102 return false;
103 }
104
105 /**
106 * {@inheritdoc}
107 */
108 public function isDebug()
109 {
110 return false;
111 }
112
113 /**
114 * {@inheritdoc}
115 */
116 public function writeln($messages, int $options = self::OUTPUT_NORMAL)
117 {
118 // do nothing
119 }
120
121 /**
122 * {@inheritdoc}
123 */
124 public function write($messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
125 {
126 // do nothing
127 }
128 }
129