You are here

public static function ProgressBar::getFormatDefinition in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/ProgressBar.php \Symfony\Component\Console\Helper\ProgressBar::getFormatDefinition()

Gets the format for a given name.

Parameters

string $name The format name:

Return value

string|null A format string

1 call to ProgressBar::getFormatDefinition()
ProgressBar::setRealFormat in vendor/symfony/console/Helper/ProgressBar.php
Sets the progress bar format.

File

vendor/symfony/console/Helper/ProgressBar.php, line 136

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public static function getFormatDefinition($name) {
  if (!self::$formats) {
    self::$formats = self::initFormats();
  }
  return isset(self::$formats[$name]) ? self::$formats[$name] : null;
}