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 = NULL)
 

Sets style background color.

public abstract setForeground(?string $color = NULL)
 

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.

© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration