You are here

public static function Table::setStyleDefinition in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::setStyleDefinition()

Sets a style definition.

Parameters

string $name The style name:

TableStyle $style A TableStyle instance:

1 call to Table::setStyleDefinition()
TableTest::testStyle in vendor/symfony/console/Tests/Helper/TableTest.php

File

vendor/symfony/console/Helper/Table.php, line 82

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

public static function setStyleDefinition($name, TableStyle $style) {
  if (!self::$styles) {
    self::$styles = self::initStyles();
  }
  self::$styles[$name] = $style;
}