Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
think
console
output
Formatter
setStyle
think\console\output\Formatter::setStyle PHP Method
Formatter Class Documentation
ファイルを表示
Open project: top-think/framework
setStyle()
public
method
添加一个新样式
public
setStyle
(
string
$name
,
Style
$style
)
$name
string
样式名
$style
think\console\output\formatter\Style
样式实例
public function setStyle($name, Style $style) { $this->styles[strtolower($name)] = $style; }
Formatter
__construct
applyCurrentStyle
createStyleFromString
escape
format
getStyle
getStyleStack
hasStyle
isDecorated
setDecorated
setStyle