function Table::calculateRowCount
1 call to Table::calculateRowCount()
- Table::appendRow in vendor/
symfony/ console/ Helper/ Table.php - Adds a row to the table, and re-renders the table.
File
-
vendor/
symfony/ console/ Helper/ Table.php, line 669
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
private function calculateRowCount() : int {
$numberOfRows = \count(iterator_to_array($this->buildTableRows(array_merge($this->headers, [
new TableSeparator(),
], $this->rows))));
if ($this->headers) {
++$numberOfRows;
// Add row for header separator
}
if ($this->rows) {
++$numberOfRows;
// Add row for footer separator
}
return $numberOfRows;
}