WrappableOutputFormatterInterface
            
            extends
                            OutputFormatterInterface                    
                
            in
            
        
    
        
            Formatter interface for console output that supports word wrapping.
Tags
Table of Contents
Methods
- format() : string|null
 - Formats a message according to the given styles.
 - formatAndWrap() : string
 - Formats a message according to the given styles, wrapping at `$width` (0 means no wrapping).
 - getStyle() : OutputFormatterStyleInterface
 - Gets style options from style with specified name.
 - hasStyle() : bool
 - Checks if output formatter has style with specified name.
 - isDecorated() : bool
 - Whether the output will decorate messages.
 - setDecorated() : void
 - Sets the decorated flag.
 - setStyle() : void
 - Sets a new style.
 
Methods
format()
Formats a message according to the given styles.
    public
                    format(string|null $message) : string|null
    Parameters
- $message : string|null
 
Return values
string|nullformatAndWrap()
Formats a message according to the given styles, wrapping at `$width` (0 means no wrapping).
    public
                    formatAndWrap(string|null $message, int $width) : string
    Parameters
- $message : string|null
 - $width : int
 
Return values
stringgetStyle()
Gets style options from style with specified name.
    public
                    getStyle(string $name) : OutputFormatterStyleInterface
    Parameters
- $name : string
 
Tags
Return values
OutputFormatterStyleInterfacehasStyle()
Checks if output formatter has style with specified name.
    public
                    hasStyle(string $name) : bool
    Parameters
- $name : string
 
Return values
boolisDecorated()
Whether the output will decorate messages.
    public
                    isDecorated() : bool
    Return values
boolsetDecorated()
Sets the decorated flag.
    public
                    setDecorated(bool $decorated) : void
    Parameters
- $decorated : bool
 
setStyle()
Sets a new style.
    public
                    setStyle(string $name, OutputFormatterStyleInterface $style) : void
    Parameters
- $name : string
 - $style : OutputFormatterStyleInterface