ConsoleWriter
in package
implements
WriterInterface
Thin wrapper around console output
Tags
Interfaces, Classes, Traits and Enums
- WriterInterface
- Interface for output
Table of Contents
- $output : OutputInterface
- Output interface
- __construct() : mixed
- Constructor
- write() : void
- Output a string to the Console.
- writeLine() : void
- Output a string w/newline to the Console.
Properties
$output
Output interface
protected
OutputInterface
$output
Methods
__construct()
Constructor
public
__construct(OutputInterface $output) : mixed
Parameters
- $output : OutputInterface
-
Output interface
Return values
mixed —write()
Output a string to the Console.
public
write(string $str) : void
Parameters
- $str : string
-
String to write.
Return values
void —writeLine()
Output a string w/newline to the Console.
public
writeLine(string $str) : void
Parameters
- $str : string
-
String to write.