\Symfony\Component\Console\OutputNullOutput

NullOutput suppresses all output.

$output = new NullOutput();

Summary

Methods
Properties
Constants
setFormatter()
getFormatter()
setDecorated()
isDecorated()
setVerbosity()
getVerbosity()
isQuiet()
isVerbose()
isVeryVerbose()
isDebug()
writeln()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setDecorated()

setDecorated(boolean  $decorated) 

Sets the decorated flag.

Parameters

boolean $decorated

Whether to decorate the messages

isDecorated()

isDecorated() : boolean

Gets the decorated flag.

Returns

boolean —

true if the output will decorate messages, false otherwise

setVerbosity()

setVerbosity(integer  $level) 

Sets the verbosity of the output.

Parameters

integer $level

The level of verbosity (one of the VERBOSITY constants)

getVerbosity()

getVerbosity() : integer

Gets the current verbosity of the output.

Returns

integer —

The current level of verbosity (one of the VERBOSITY constants)

isQuiet()

isQuiet() : boolean

Returns whether verbosity is quiet (-q).

Returns

boolean —

true if verbosity is set to VERBOSITY_QUIET, false otherwise

isVerbose()

isVerbose() : boolean

Returns whether verbosity is verbose (-v).

Returns

boolean —

true if verbosity is set to VERBOSITY_VERBOSE, false otherwise

isVeryVerbose()

isVeryVerbose() : boolean

Returns whether verbosity is very verbose (-vv).

Returns

boolean —

true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise

isDebug()

isDebug() : boolean

Returns whether verbosity is debug (-vvv).

Returns

boolean —

true if verbosity is set to VERBOSITY_DEBUG, false otherwise

writeln()

writeln(string|\Symfony\Component\Console\Output\iterable  $messages, integer  $options = self::OUTPUT_NORMAL) 

Writes a message to the output and adds a newline at the end.

Parameters

string|\Symfony\Component\Console\Output\iterable $messages

The message as an iterable of strings or a single string

integer $options

A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL

write()

write(string|\Symfony\Component\Console\Output\iterable  $messages, boolean  $newline = false, integer  $options = self::OUTPUT_NORMAL) 

Writes a message to the output.

Parameters

string|\Symfony\Component\Console\Output\iterable $messages

The message as an iterable of strings or a single string

boolean $newline

Whether to add a newline

integer $options

A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL