symfony / 3.0 / symfony / component / console / formatter / outputformatterstylestack.html

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

reset()

Resets stack (ie. empty internal arrays).

push(OutputFormatterStyleInterface $style)

Pushes a style in the stack.

Parameters

OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Pops a style from the stack.

Parameters

Return Value

Exceptions

InvalidArgumentException When style tags incorrectly nested

OutputFormatterStyle getCurrent()

Computes current style with stacks top codes.

Return Value

OutputFormatterStyleStack setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

Parameters

Return Value

OutputFormatterStyleInterface getEmptyStyle()

Return Value

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.html