You are here

public function OutputFormatterStyle::setOptions in Zircon Profile 8

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

Sets multiple style options at once.

Parameters

array $options:

Overrides OutputFormatterStyleInterface::setOptions

1 call to OutputFormatterStyle::setOptions()
OutputFormatterStyle::__construct in vendor/symfony/console/Formatter/OutputFormatterStyle.php
Initializes output formatter style.

File

vendor/symfony/console/Formatter/OutputFormatterStyle.php, line 177

Class

OutputFormatterStyle
Formatter style class for defining styles.

Namespace

Symfony\Component\Console\Formatter

Code

public function setOptions(array $options) {
  $this->options = array();
  foreach ($options as $option) {
    $this
      ->setOption($option);
  }
}