Symfony\Component\Console\Formatter\OutputFormatterStyle
Formatter style class for defining styles.
- Author: Konstantin Kudryashov <ever.zet@gmail.com>
Synopsis
class OutputFormatterStyle
implements
OutputFormatterStyleInterface
{
- // members
- private array $availableForegroundColors;
- private array $availableBackgroundColors;
- private array $availableOptions;
- private $foreground;
- private $background;
- private array $options;
- // methods
- public void __construct()
- public void setForeground()
- public void setBackground()
- public void setOption()
- public void unsetOption()
- public void setOptions()
- public string apply()
Hierarchy
Members
private
- $availableBackgroundColors
- $availableForegroundColors
- $availableOptions
- $background
- $foreground
- $options
Methods
public
- __construct() — Initializes output formatter style.
- apply() — Applies the style to a given text.
- setBackground() — Sets style background color.
- setForeground() — Sets style foreground color.
- setOption() — Sets some specific style option.
- setOptions() — Sets multiple style options at once.
- unsetOption() — Unsets some specific style option.