Class IO
Provides methods to access the console input and output.
- Webmozart\Console\Api\IO\IO implements Webmozart\Console\Api\Formatter\Formatter
Namespace: Webmozart\Console\Api\IO
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/IO/IO.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/IO/IO.php
public
|
#
__construct(
Creates an I/O based on the given input and outputs. |
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
#
writeLineRaw( string $string, integer $flags = null )
Writes a line of text to the standard output without formatting. |
public
|
|
public
|
|
public
|
|
public
|
#
errorLineRaw( string $string, integer $flags = null )
Writes a line of text to the error output without formatting. |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
#
isVeryVerbose( )
Returns whether the verbosity is |
public
boolean
|
|
public
integer
|
|
public
|
|
public
boolean
|
|
public
|
#
setTerminalDimensions(
Sets the dimensions of the terminal. |
public
|
|
public
|
|
public
|
|
public
string
|
#
format( string $string,
Formats the given string. |
public
string
|
|
protected
|
integer |
NORMAL
Flag: Always write data. |
#
0
|
integer |
VERBOSE
Flag: Only write if the verbosity is "verbose" or greater. |
#
1
|
integer |
VERY_VERBOSE
Flag: Only write if the verbosity is "very verbose" or greater. |
#
2
|
integer |
DEBUG
Flag: Only write if the verbosity is "debug". |
#
4
|