Copied!

Formatter style class for defining styles.

CloneableInstantiable
Methods
public __construct(?string $foreground = NULL, ?string $background = NULL, array $options = [])
 

Initializes output formatter style.

  • param string|null $foreground The style foreground color name
  • param string|null $background The style background color name
public apply(string $text) : string
public setBackground(?string $color) : void
public setForeground(?string $color) : void
public setHref(string $url) : void
public setOption(string $option) : void
public setOptions(array $options) : void
public unsetOption(string $option) : void
Properties
private string $background
private Symfony\Component\Console\Color $color
private string $foreground
private bool $handlesHrefGracefully
private ?string $href = NULL
private array $options
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration