NullOutputFormatter
in package
implements
OutputFormatterInterface
Tags
Interfaces, Classes and Traits
- OutputFormatterInterface
- Formatter interface for console output.
Table of Contents
- $style : mixed
- format() : void
- Formats a message according to the given styles.
- getStyle() : OutputFormatterStyleInterface
- Gets style options from style with specified name.
- hasStyle() : bool
- Checks if output formatter has style with specified name.
- isDecorated() : bool
- Gets the decorated flag.
- setDecorated() : void
- Sets the decorated flag.
- setStyle() : void
- Sets a new style.
Properties
$style
private
mixed
$style
Methods
format()
Formats a message according to the given styles.
public
format(string|null $message) : void
Parameters
- $message : string|null
Return values
void —getStyle()
Gets style options from style with specified name.
public
getStyle(string $name) : OutputFormatterStyleInterface
Parameters
- $name : string
Return values
OutputFormatterStyleInterface —hasStyle()
Checks if output formatter has style with specified name.
public
hasStyle(string $name) : bool
Parameters
- $name : string
Return values
bool —isDecorated()
Gets the decorated flag.
public
isDecorated() : bool
Return values
bool —true if the output will decorate messages, false otherwise
setDecorated()
Sets the decorated flag.
public
setDecorated(bool $decorated) : void
Parameters
- $decorated : bool
Return values
void —setStyle()
Sets a new style.
public
setStyle(string $name, OutputFormatterStyleInterface $style) : void
Parameters
- $name : string
- $style : OutputFormatterStyleInterface