PHP Interface Webmozart\Console\Api\Formatter\Formatter

Since: 1.0
Author: Bernhard Schussek ([email protected])
Show file Open project: webmozart/console Interface Usage Examples

Public Methods

Method Description
format ( string $string, Style $style = null ) : string Formats the given string.
removeFormat ( string $string ) : string Removes the format tags from the given string.

Method Details

format() public method

Formats the given string.
public format ( string $string, Style $style = null ) : string
$string string The string to format.
$style Style The style to use.
return string The formatted string.

removeFormat() public method

Removes the format tags from the given string.
public removeFormat ( string $string ) : string
$string string The string to remove the format tags from.
return string The string without format tags.