You are here

public function Table::addRow in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::addRow()
1 call to Table::addRow()
Table::addRows in vendor/symfony/console/Helper/Table.php

File

vendor/symfony/console/Helper/Table.php, line 169

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public function addRow($row) {
  if ($row instanceof TableSeparator) {
    $this->rows[] = $row;
    return $this;
  }
  if (!is_array($row)) {
    throw new \InvalidArgumentException('A row must be an array or a TableSeparator instance.');
  }
  $this->rows[] = array_values($row);
  return $this;
}