OutputFormatterStyleStack
in package
implements
ResetInterface
Tags
Table of Contents
Interfaces
- ResetInterface
- Provides a way to reset an object to its initial state.
Properties
- $emptyStyle : mixed
- $styles : array<string|int, OutputFormatterStyleInterface>
Methods
- __construct() : mixed
- getCurrent() : OutputFormatterStyle
- Computes current style with stacks top codes.
- getEmptyStyle() : OutputFormatterStyleInterface
- pop() : OutputFormatterStyleInterface
- Pops a style from the stack.
- push() : mixed
- Pushes a style in the stack.
- reset() : mixed
- Resets stack (ie. empty internal arrays).
- setEmptyStyle() : $this
Properties
$emptyStyle
private
mixed
$emptyStyle
$styles
private
array<string|int, OutputFormatterStyleInterface>
$styles
Methods
__construct()
public
__construct([OutputFormatterStyleInterface $emptyStyle = null ]) : mixed
Parameters
- $emptyStyle : OutputFormatterStyleInterface = null
getCurrent()
Computes current style with stacks top codes.
public
getCurrent() : OutputFormatterStyle
Return values
OutputFormatterStylegetEmptyStyle()
public
getEmptyStyle() : OutputFormatterStyleInterface
Return values
OutputFormatterStyleInterfacepop()
Pops a style from the stack.
public
pop([OutputFormatterStyleInterface $style = null ]) : OutputFormatterStyleInterface
Parameters
- $style : OutputFormatterStyleInterface = null
Tags
Return values
OutputFormatterStyleInterfacepush()
Pushes a style in the stack.
public
push(OutputFormatterStyleInterface $style) : mixed
Parameters
- $style : OutputFormatterStyleInterface
reset()
Resets stack (ie. empty internal arrays).
public
reset() : mixed
setEmptyStyle()
public
setEmptyStyle(OutputFormatterStyleInterface $emptyStyle) : $this
Parameters
- $emptyStyle : OutputFormatterStyleInterface