Spec-Zone.ru › Symfony 3.0

OutputFormatterStyleStack

class OutputFormatterStyleStack

Методы

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Конструктор.

reset()

Сбрасывает стек (т.е. очищает внутренние массивы).

push(OutputFormatterStyleInterface $style)

Добавляет стиль в стек.

OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Извлекает стиль из стека.

OutputFormatterStyle getCurrent()

Вычисляет текущий стиль с кодами вершины стека.

OutputFormatterStyleStack setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
OutputFormatterStyleInterface getEmptyStyle()

Подробности

__construct(OutputFormatterStyleInterface $emptyStyle = null)

Конструктор.

Параметры

OutputFormatterStyleInterface $emptyStyle

reset()

Сбрасывает стек (т.е. очищает внутренние массивы).

push(OutputFormatterStyleInterface $style)

Добавляет стиль в стек.

Параметры

OutputFormatterStyleInterface $style

OutputFormatterStyleInterface pop(OutputFormatterStyleInterface $style = null)

Извлекает стиль из стека.

Параметры

OutputFormatterStyleInterface $style

Возвращаемое значение

OutputFormatterStyleInterface

Исключения

InvalidArgumentException При некорректном вложенности тегов стиля

OutputFormatterStyle getCurrent()

Вычисляет текущий стиль с кодами вершины стека.

Возвращаемое значение

OutputFormatterStyle

OutputFormatterStyleStack setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)

Параметры

OutputFormatterStyleInterface $emptyStyle

Возвращаемое значение

OutputFormatterStyleStack

OutputFormatterStyleInterface getEmptyStyle()

Возвращаемое значение

OutputFormatterStyleInterface

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API