function Table::resolveStyle
2 calls to Table::resolveStyle()
- Table::setColumnStyle in vendor/
symfony/ console/ Helper/ Table.php - Sets table column style.
- Table::setStyle in vendor/
symfony/ console/ Helper/ Table.php - Sets table style.
File
-
vendor/
symfony/ console/ Helper/ Table.php, line 916
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
private function resolveStyle(TableStyle|string $name) : TableStyle {
if ($name instanceof TableStyle) {
return $name;
}
return self::$styles[$name] ?? throw new InvalidArgumentException(\sprintf('Style "%s" is not defined.', $name));
}