Formatter style interface for defining styles.
- author Konstantin Kudryashov
AbstractInterface
Methods |
public abstract apply(string $text) : string Applies the style to a given text. |
public abstract setBackground(?string $color) Sets style background color.
|
public abstract setForeground(?string $color) Sets style foreground color.
|
public abstract setOption(string $option) Sets some specific style option.
|
public abstract setOptions(array $options) Sets multiple style options at once.
|
public abstract unsetOption(string $option) Unsets some specific style option.
|