class NullOutput in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Output/NullOutput.php \Symfony\Component\Console\Output\NullOutput
NullOutput suppresses all output.
$output = new NullOutput();
@author Fabien Potencier <fabien@symfony.com> @author Tobias Schultze <http://tobion.de>
Hierarchy
- class \Symfony\Component\Console\Output\NullOutput implements OutputInterface
Expanded class hierarchy of NullOutput
5 files declare their use of NullOutput
- ApplicationTest.php in vendor/
symfony/ console/ Tests/ ApplicationTest.php - CommandTest.php in vendor/
symfony/ console/ Tests/ Command/ CommandTest.php - NullOutputTest.php in vendor/
symfony/ console/ Tests/ Output/ NullOutputTest.php - ProgressHelper.php in vendor/
symfony/ console/ Helper/ ProgressHelper.php - TableHelper.php in vendor/
symfony/ console/ Helper/ TableHelper.php
File
- vendor/
symfony/ console/ Output/ NullOutput.php, line 25
Namespace
Symfony\Component\Console\OutputView source
class NullOutput implements OutputInterface {
/**
* {@inheritdoc}
*/
public function setFormatter(OutputFormatterInterface $formatter) {
// do nothing
}
/**
* {@inheritdoc}
*/
public function getFormatter() {
// to comply with the interface we must return a OutputFormatterInterface
return new OutputFormatter();
}
/**
* {@inheritdoc}
*/
public function setDecorated($decorated) {
// do nothing
}
/**
* {@inheritdoc}
*/
public function isDecorated() {
return false;
}
/**
* {@inheritdoc}
*/
public function setVerbosity($level) {
// do nothing
}
/**
* {@inheritdoc}
*/
public function getVerbosity() {
return self::VERBOSITY_QUIET;
}
public function isQuiet() {
return true;
}
public function isVerbose() {
return false;
}
public function isVeryVerbose() {
return false;
}
public function isDebug() {
return false;
}
/**
* {@inheritdoc}
*/
public function writeln($messages, $type = self::OUTPUT_NORMAL) {
// do nothing
}
/**
* {@inheritdoc}
*/
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) {
// do nothing
}
}