ConsoleOutputTrait
Console output trait (used to add output support to other classes).
Tags
Table of Contents
- $outputInterface : OutputInterface
- Output interface.
- setOutputInterface() : mixed
- Set the output interface. Implements a fluent interface.
- writeln() : mixed
- Write a line to the output (if available). Implements a fluent interface.
Properties
$outputInterface
Output interface.
protected
OutputInterface
$outputInterface
= null
Methods
setOutputInterface()
Set the output interface. Implements a fluent interface.
public
setOutputInterface(OutputInterface $output) : mixed
Parameters
- $output : OutputInterface
-
Output interface
Return values
mixed —writeln()
Write a line to the output (if available). Implements a fluent interface.
public
writeln(string $output) : mixed
Parameters
- $output : string
-
Line to output.