Skip to content

Latest commit

 

History

History
217 lines (73 loc) · 2.23 KB

OutputFormatterStyleStack.md

File metadata and controls

217 lines (73 loc) · 2.23 KB

OutputFormatterStyleStack

Properties

styles

private \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface[] $styles

emptyStyle

private $emptyStyle

Methods

__construct

public __construct(\Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $emptyStyle = null): mixed

Parameters:

Parameter Type Description
$emptyStyle \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

reset

Resets stack (ie. empty internal arrays).

public reset(): mixed

push

Pushes a style in the stack.

public push(\Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style): mixed

Parameters:

Parameter Type Description
$style \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

pop

Pops a style from the stack.

public pop(\Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style = null): \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

Parameters:

Parameter Type Description
$style \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

getCurrent

Computes current style with stacks top codes.

public getCurrent(): \Symfony\Component\Console\Formatter\OutputFormatterStyle

setEmptyStyle

public setEmptyStyle(\Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $emptyStyle): $this

Parameters:

Parameter Type Description
$emptyStyle \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

getEmptyStyle

public getEmptyStyle(): \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface