WrappableOutputFormatterInterface
interface WrappableOutputFormatterInterface implementsOutputFormatterInterface
Formatter interface for console output that supports word wrapping.
Methods
void
bool
hasStyle(string$name)
Checks if output formatter has style with specified name.
getStyle(string$name)
Gets style options from style with specified name.
string|null
format(string|null$message)
Formats a message according to the given styles.
string
formatAndWrap(string|null$message,int$width)
Formats a message according to the given styles, wrapping at $width
(0 means no wrapping).
Details
OutputFormatterStyleInterface
getStyle(string$name)
Gets style options from style with specified name.