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 = NULL)
 
  • return void
public setForeground(?string $color = NULL)
 
  • return void
public setHref(string $url) : void
public setOption(string $option)
 
  • return void
public setOptions(array $options)
 
  • return void
public unsetOption(string $option)
 
  • return void
Properties
private string $background
private Symfony\Component\Console\Color $color
private string $foreground
private bool $handlesHrefGracefully
private ?string $href = NULL
private array $options
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration