public static function Table::getStyleDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::getStyleDefinition()
Gets a style definition by name.
Parameters
string $name The style name:
Return value
TableStyle A TableStyle instance
File
- vendor/
symfony/ console/ Helper/ Table.php, line 98
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
public static function getStyleDefinition($name) {
if (!self::$styles) {
self::$styles = self::initStyles();
}
if (!self::$styles[$name]) {
throw new \InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
}
return self::$styles[$name];
}