class OutputFormatterStyleStack implements ResetInterface

Methods

__construct(OutputFormatterStyleInterface $emptyStyle = null)

No description

reset()

Resets stack (ie. empty internal arrays).

push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

pop(OutputFormatterStyleInterface $style = null)

Pops a style from the stack.

getCurrent()

Computes current style with stacks top codes.

$this
setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

No description

Details

at line 29
__construct(OutputFormatterStyleInterface $emptyStyle = null)

Parameters

OutputFormatterStyleInterface $emptyStyle

at line 38
reset()

Resets stack (ie. empty internal arrays).

at line 46
push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

Parameters

OutputFormatterStyleInterface $style

at line 58
OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Pops a style from the stack.

Parameters

OutputFormatterStyleInterface $style

Return Value

OutputFormatterStyleInterface

Exceptions

InvalidArgumentException When style tags incorrectly nested

at line 84
OutputFormatterStyle getCurrent()

Computes current style with stacks top codes.

Return Value

OutputFormatterStyle

at line 96
$this setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

Parameters

OutputFormatterStyleInterface $emptyStyle

Return Value

$this

at line 106
OutputFormatterStyleInterface getEmptyStyle()