function Table::appendRow
Adds a row to the table, and re-renders the table.
Return value
$this
File
-
vendor/
symfony/ console/ Helper/ Table.php, line 233
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
public function appendRow(TableSeparator|array $row) : static {
if (!$this->output instanceof ConsoleSectionOutput) {
throw new RuntimeException(\sprintf('Output should be an instance of "%s" when calling "%s".', ConsoleSectionOutput::class, __METHOD__));
}
if ($this->rendered) {
$this->output
->clear($this->calculateRowCount());
}
$this->addRow($row);
$this->render();
return $this;
}