Copied!

Formatter style interface for defining styles.

AbstractInterface
Methods
public abstract apply(string $text) : string
 

Applies the style to a given text.

public abstract setBackground(?string $color)
 

Sets style background color.

  • return void
public abstract setForeground(?string $color)
 

Sets style foreground color.

  • return void
public abstract setOption(string $option)
 

Sets some specific style option.

  • return void
public abstract setOptions(array $options)
 

Sets multiple style options at once.

  • return void
public abstract unsetOption(string $option)
 

Unsets some specific style option.

  • return void
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration