Symfony\Component\Console\Formatter\OutputFormatterStyleStack
- Author: Jean-François Simon <contact@jfsimon.fr>
Synopsis
class OutputFormatterStyleStack
{
- // members
- private array $styles;
- private OutputFormatterStyleInterface $emptyStyle;
- // methods
- public void __construct()
- public void reset()
- public void push()
- public OutputFormatterStyleInterface pop()
- public OutputFormatterStyle getCurrent()
- public OutputFormatterStyleStack setEmptyStyle()
- public OutputFormatterStyleInterface getEmptyStyle()
Members
private
- $emptyStyle — Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
- $styles — array
Methods
public
- __construct() — Constructor.
- getCurrent() — Computes current style with stacks top codes.
- getEmptyStyle()
- pop() — Pops a style from the stack.
- push() — Pushes a style in the stack.
- reset() — Resets stack (ie. empty internal arrays).
- setEmptyStyle()