class SimpleCliOutput extends AbstractCliOutput (View source)

Class SimpleCliOutput

Methods

resource
getOutputStream()

getOutStream

setOutputStream(resource $outStream)

setOutStream

resource
getErrorStream()

Method to get property ErrorStream

setErrorStream(resource $errorStream)

Method to set property errorStream

out(string $text = '', boolean $nl = true)

Write a string to standard output

$this
err(string $text = '', boolean $nl = true)

Write a string to standard error output.

Details

resource getOutputStream()

getOutStream

Return Value

resource

AbstractCliOutput setOutputStream(resource $outStream)

setOutStream

Parameters

resource $outStream

Return Value

AbstractCliOutput Return self to support chaining.

resource getErrorStream()

Method to get property ErrorStream

Return Value

resource

AbstractCliOutput setErrorStream(resource $errorStream)

Method to set property errorStream

Parameters

resource $errorStream

Return Value

AbstractCliOutput Return self to support chaining.

at line line 26
CliOutputInterface out(string $text = '', boolean $nl = true)

Write a string to standard output

Parameters

string $text The text to display.
boolean $nl True (default) to append a new line at the end of the output string.

Return Value

CliOutputInterface Instance of $this to allow chaining.

at line line 42
$this err(string $text = '', boolean $nl = true)

Write a string to standard error output.

Parameters

string $text The text to display.
boolean $nl True (default) to append a new line at the end of the output string.

Return Value

$this