Avolutions\Console\Console
Handles the console output.
Methods
Method | Visibility | Description |
---|---|---|
__construct() | public | Creates a new Console instance and initializes the output stream. |
write() | public | Adds text to the Console output. |
writeLine() | public | Adds text with line break at the end to the Console output. |
Method Details
__construct()
Creates a new Console instance and initializes the output stream.
public
__construct() : mixed
write()
Adds text to the Console output.
public
write(string $message[, mixed|null $style = null ][, bool $newLine = false ]) : void
Parameters
string
$message
The message to output.
mixed|null
$style
(optional)
Either the name of a predefined style or an array with style information.
bool
$newLine
(optional)
Either a line break is added to the end (true) or not (false).
Return values
void Adds text to the Console output.writeLine()
Adds text with line break at the end to the Console output.
public
writeLine(string $message[, mixed|null $style = null ]) : void
Parameters
string
$message
The message to output.
mixed|null
$style
(optional)
Either the name of a predefined style or an array with style information.