final class TableWriter (View source)

Writes the tabular output of a command as tab-separated lines (a header row, then one line per row) or as a JSON list of objects keyed by the lower-cased column names.

Constants

OPTION

FORMATS

Methods

static TableWriter
fromArguments(Arguments $arguments, resource $stdout)

No description

void
write(array $columns, iterable $rows)

No description

Details

static TableWriter fromArguments(Arguments $arguments, resource $stdout)

No description

Parameters

Arguments $arguments
resource $stdout

Return Value

TableWriter

Exceptions

InvalidArgumentException

void write(array $columns, iterable $rows)

No description

Parameters

array $columns
iterable $rows

One value per column, in column order

Return Value

void