function SymfonyStyle::horizontalTable
Formats a horizontal table.
1 call to SymfonyStyle::horizontalTable()
- SymfonyStyle::definitionList in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Formats a list of key/value horizontally.
File
-
vendor/
symfony/ console/ Style/ SymfonyStyle.php, line 166
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
public function horizontalTable(array $headers, array $rows) : void {
$this->createTable()
->setHorizontal(true)
->setHeaders($headers)
->setRows($rows)
->render();
$this->newLine();
}