OutputFormatterStyleStack

class OutputFormatterStyleStack

Methods

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Constructor.

reset()

Resets stack (ie. empty internal arrays).

push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Pops a style from the stack.

OutputFormatterStyle getCurrent()

Computes current style with stacks top codes.

OutputFormatterStyleStack setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
OutputFormatterStyleInterface getEmptyStyle()

Details

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Constructor.

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
doc_Symfony
2016-10-28 06:25:33
Comments
Leave a Comment

Please login to continue.