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

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Parameters

OutputFormatterStyleInterface $emptyStyle

reset()

Resets stack (ie. empty internal arrays).

push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

Parameters

OutputFormatterStyleInterface $style

OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Pops a style from the stack.

Parameters

OutputFormatterStyleInterface $style

Return Value

OutputFormatterStyleInterface

Exceptions

InvalidArgumentException When style tags incorrectly nested

OutputFormatterStyle getCurrent()

Computes current style with stacks top codes.

Return Value

OutputFormatterStyle

$this setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

Parameters

OutputFormatterStyleInterface $emptyStyle

Return Value

$this