Class NullOutput
NullOutput suppresses all output.
$output = new NullOutput();
-
Symfony\Component\Console\Output\NullOutput
implements
Symfony\Component\Console\Output\OutputInterface
Methods summary
public
|
|
public
Symfony\Component\Console\Formatter\OutputFormatterInterface
|
#
getFormatter( )
Returns current output formatter instance.
Returns current output formatter instance.
Returns
Implementation of
|
public
|
#
setDecorated( boolean $decorated )
Sets the decorated flag.
Parameters
- $decorated
- Whether to decorate the messages
Implementation of
|
public
boolean
|
#
isDecorated( )
Gets the decorated flag.
Returns
boolean true if the output will decorate messages, false otherwise
Implementation of
|
public
|
#
setVerbosity( integer $level )
Sets the verbosity of the output.
Sets the verbosity of the output.
Parameters
- $level
- The level of verbosity (one of the VERBOSITY constants)
Implementation of
|
public
integer
|
#
getVerbosity( )
Gets the current verbosity of the output.
Gets the current verbosity of the output.
Returns
integer The current level of verbosity (one of the VERBOSITY constants)
Implementation of
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
writeln( string|array $messages, integer $options = self::OUTPUT_NORMAL )
Writes a message to the output and adds a newline at the end.
Writes a message to the output and adds a newline at the end.
Parameters
- $messages
- The message as an array of lines of a single string
- $options
- A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
Implementation of
|
public
|
#
write( string|array $messages, boolean $newline = false, integer $options = self::OUTPUT_NORMAL )
Writes a message to the output.
Writes a message to the output.
Parameters
- $messages
- The message as an array of lines or a single string
- $newline
- Whether to add a newline
- $options
- A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
Implementation of
|