OutputFormatterStyleStack
class OutputFormatterStyleStack
Методы
| __construct(OutputFormatterStyleInterface $emptyStyle = null) Конструктор. | ||
| reset() Сбрасывает стек (т.е. очищает внутренние массивы). | ||
| push(OutputFormatterStyleInterface $style) Добавляет стиль в стек. | ||
| OutputFormatterStyleInterface | pop(OutputFormatterStyleInterface $style = null) Извлекает стиль из стека. | |
| OutputFormatterStyle | getCurrent() Вычисляет текущий стиль с кодами вершины стека. | |
| $this | 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 |
$this setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
Параметры
| OutputFormatterStyleInterface | $emptyStyle |
Возвращаемое значение
| $this |
OutputFormatterStyleInterface getEmptyStyle()
Возвращаемое значение
| OutputFormatterStyleInterface |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.html