Symfony\Component\Console\Output\OutputInterface
OutputInterface is the interface implemented by all Output classes.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
interface OutputInterface
{
- // constants
- const VERBOSITY_QUIET = 0;
- const VERBOSITY_NORMAL = 1;
- const VERBOSITY_VERBOSE = 2;
- const VERBOSITY_VERY_VERBOSE = 3;
- const VERBOSITY_DEBUG = 4;
- const OUTPUT_NORMAL = 0;
- const OUTPUT_RAW = 1;
- const OUTPUT_PLAIN = 2;
- // methods
- public void write()
- public void writeln()
- public void setVerbosity()
- public integer getVerbosity()
- public void setDecorated()
- public Boolean isDecorated()
- public void setFormatter()
- public OutputFormatterInterface getFormatter()
Hierarchy
Extended by
Implemented by
Constants
Name | Value |
---|---|
VERBOSITY_QUIET | 0 |
VERBOSITY_NORMAL | 1 |
VERBOSITY_VERBOSE | 2 |
VERBOSITY_VERY_VERBOSE | 3 |
VERBOSITY_DEBUG | 4 |
OUTPUT_NORMAL | 0 |
OUTPUT_RAW | 1 |
OUTPUT_PLAIN | 2 |
Methods
public
- getFormatter() — Returns current output formatter instance.
- getVerbosity() — Gets the current verbosity of the output.
- isDecorated() — Gets the decorated flag.
- setDecorated() — Sets the decorated flag.
- setFormatter() — Sets output formatter.
- setVerbosity() — Sets the verbosity of the output.
- write() — Writes a message to the output.
- writeln() — Writes a message to the output and adds a newline at the end.