Method |
Description |
|
__construct ( array $options = [] ) |
|
|
apply ( string $text, array $options = [] ) : string |
Returns the text formated with the specified options |
|
format ( string $text ) |
Formats $text according to the formater's options |
|
getBgColor ( ) : string |
|
|
getFgColor ( ) : string |
|
|
getIndent ( ) : integer |
|
|
getIndentWidth ( ) : integer |
|
|
getQuote ( ) : string |
|
|
setBgColor ( string $color ) : TextFormater |
|
|
setFgColor ( string $color ) : TextFormater |
|
|
setIndent ( integer $indent ) : TextFormater |
|
|
setIndentWidth ( $width ) : TextFormater |
|
|
setOptions ( array $options ) : TextFormater |
Available options:
- indentWidth
- indent
- quote
- fgcolor
- bgcolor |
|
setQuote ( string $quote ) : TextFormater |
|
|