class OutputFormatterStyleStack

Methods

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Constructor.

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.

Details

at line line 36
__construct(OutputFormatterStyleInterface $emptyStyle = null)

Constructor.

Parameters

OutputFormatterStyleInterface $emptyStyle

at line line 45
reset()

Resets stack (ie. empty internal arrays).

at line line 55
push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

Parameters

OutputFormatterStyleInterface $style

at line line 69
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 line 95
OutputFormatterStyle getCurrent()

Computes current style with stacks top codes.

Return Value

OutputFormatterStyle

at line line 109
OutputFormatterStyleStack setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

Parameters

OutputFormatterStyleInterface $emptyStyle

Return Value

OutputFormatterStyleStack

at line line 119
OutputFormatterStyleInterface getEmptyStyle()