You are here

public function OutputFormatter::hasStyle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Formatter/OutputFormatter.php \Symfony\Component\Console\Formatter\OutputFormatter::hasStyle()

Checks if output formatter has style with specified name.

Parameters

string $name:

Return value

bool

Overrides OutputFormatterInterface::hasStyle

1 call to OutputFormatter::hasStyle()
OutputFormatter::getStyle in vendor/symfony/console/Formatter/OutputFormatter.php
Gets style options from style with specified name.

File

vendor/symfony/console/Formatter/OutputFormatter.php, line 97

Class

OutputFormatter
Formatter class for console output.

Namespace

Symfony\Component\Console\Formatter

Code

public function hasStyle($name) {
  return isset($this->styles[strtolower($name)]);
}