PHP Class Webmozart\Console\Formatter\AnsiFormatter

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Webmozart\Console\Api\Formatter\Formatter
Afficher le fichier Open project: webmozart/console Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( StyleSet $styleSet = null ) Creates the formatter.
format ( $string, Style $style = null )
removeFormat ( $string )

Method Details

__construct() public méthode

Creates the formatter.
public __construct ( StyleSet $styleSet = null )
$styleSet Webmozart\Console\Api\Formatter\StyleSet The style set to use.

format() public méthode

public format ( $string, Style $style = null )
$style Webmozart\Console\Api\Formatter\Style

removeFormat() public méthode

public removeFormat ( $string )