PHP Class think\console\output\formatter\Stack

Datei anzeigen Open project: top-think/framework

Public Methods

Method Description
__construct ( Style $emptyStyle = null ) 构造方法
getCurrent ( ) : Style 计算堆栈的当前样式。
getEmptyStyle ( ) : Style
pop ( Style $style = null ) : Style 从堆栈中弹出一个样式
push ( Style $style ) 推一个样式进入堆栈
reset ( ) 重置堆栈
setEmptyStyle ( Style $emptyStyle ) : Stack

Method Details

__construct() public method

构造方法
public __construct ( Style $emptyStyle = null )
$emptyStyle Style

getCurrent() public method

计算堆栈的当前样式。
public getCurrent ( ) : Style
return Style

getEmptyStyle() public method

public getEmptyStyle ( ) : Style
return Style

pop() public method

从堆栈中弹出一个样式
public pop ( Style $style = null ) : Style
$style Style
return Style

push() public method

推一个样式进入堆栈
public push ( Style $style )
$style Style

reset() public method

重置堆栈
public reset ( )

setEmptyStyle() public method

public setEmptyStyle ( Style $emptyStyle ) : Stack
$emptyStyle Style
return Stack