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