\app\framework\Component\Console\Output\FormatterOutputFormatterInterface

Formatter interface for console output.

Summary

Methods
Constants
setDecorated()
isDecorated()
setStyle()
hasStyle()
getStyle()
format()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setDecorated()

setDecorated(boolean  $decorated) 

Sets the decorated flag.

Parameters

boolean $decorated

Whether to decorate the messages or not

isDecorated()

isDecorated() : boolean

Gets the decorated flag.

Returns

boolean —

true if the output will decorate messages, false otherwise

hasStyle()

hasStyle(string  $name) : boolean

Checks if output formatter has style with specified name.

Parameters

string $name

Returns

boolean

format()

format(string  $message) : string

Formats a message according to the given styles.

Parameters

string $message

The message to style

Returns

string —

The styled message