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) : void
 

Sets style background color.

public abstract setForeground(?string $color) : void
 

Sets style foreground color.

public abstract setOption(string $option) : void
 

Sets some specific style option.

public abstract setOptions(array $options) : void
 

Sets multiple style options at once.

public abstract unsetOption(string $option) : void
 

Unsets some specific style option.

© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration