Formatter style class for defining styles.
- author Konstantin Kudryashov
CloneableInstantiable
| Methods |
| public __construct(?string $foreground = NULL, ?string $background = NULL, array $options = []) Initializes output formatter style.
|
| public apply(string $text) : string |
| public setBackground(?string $color) : void |
| public setForeground(?string $color) : void |
| public setHref(string $url) : void |
| public setOption(string $option) : void |
| public setOptions(array $options) : void |
| public unsetOption(string $option) : void |
| Properties |
| private string $background |
| private Symfony |
| private string $foreground |
| private bool $handlesHrefGracefully |
| private ?string $href = NULL |
| private array $options |