PHP Class Cml\Console\Format\Format

Mostrar archivo Open project: linhecheng/cmlphp Class Usage Examples

Protected Properties

Property Type Description
$backgroundColors integer 背景色
$foregroundColors integer 前景色
$indent integer 缩进多少个空格
$quote string 前置符号

Public Methods

Method Description
__construct ( array $options = [] ) 构造方法
format ( string $text ) : string 格式化文本
setOptions ( array $options ) 设置参数

Method Details

__construct() public method

构造方法
public __construct ( array $options = [] )
$options array 配置参数

format() public method

格式化文本
public format ( string $text ) : string
$text string
return string

setOptions() public method

设置参数
public setOptions ( array $options )
$options array

Property Details

$backgroundColors protected_oe property

背景色
protected int $backgroundColors
return integer

$foregroundColors protected_oe property

前景色
protected int $foregroundColors
return integer

$indent protected_oe property

缩进多少个空格
protected int $indent
return integer

$quote protected_oe property

前置符号
protected string $quote
return string