interface OutputInterface
OutputInterface is the interface implemented by all Output classes.
Constants
| VERBOSITY_QUIET |
|
| VERBOSITY_NORMAL |
|
| VERBOSITY_VERBOSE |
|
| OUTPUT_NORMAL |
|
| OUTPUT_RAW |
|
| OUTPUT_PLAIN |
|
Methods
|
write(string|array $messages, Boolean $newline = false, integer $type)
Writes a message to the output. |
||
|
writeln(string|array $messages, integer $type)
Writes a message to the output and adds a newline at the end. |
||
|
setVerbosity(integer $level)
Sets the verbosity of the output. |
||
| integer |
getVerbosity()
Gets the current verbosity of the output. |
|
|
setDecorated(Boolean $decorated)
Sets the decorated flag. |
||
| Boolean |
isDecorated()
Gets the decorated flag. |
|
|
setFormatter(OutputFormatterInterface $formatter)
Sets output formatter. |
||
| OutputFormatterInterface |
getFormatter()
Returns current output formatter instance. |
Details
at line 44
public
write(string|array $messages, Boolean $newline = false, integer $type)
Writes a message to the output.
at line 54
public
writeln(string|array $messages, integer $type)
Writes a message to the output and adds a newline at the end.
at line 63
public
setVerbosity(integer $level)
Sets the verbosity of the output.
at line 72
public integer
getVerbosity()
Gets the current verbosity of the output.
at line 81
public
setDecorated(Boolean $decorated)
Sets the decorated flag.
at line 90
public Boolean
isDecorated()
Gets the decorated flag.
at line 99
public
setFormatter(OutputFormatterInterface $formatter)
Sets output formatter.
at line 108
public OutputFormatterInterface
getFormatter()
Returns current output formatter instance.