FormatterHelper
class FormatterHelper extends Helper
The Formatter class provides helpers to format messages.
Methods
from Helper
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
from Helper
static
from Helper
string
formatSection(string $section, string $message, string $style = 'info')
Formats a message within a section.
string
formatBlock(string|array $messages, string $style, bool $large = false)
Formats a message as a block of text.
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 32
string
formatSection(string $section, string $message, string $style = 'info')
Formats a message within a section.
at line line 46
string
formatBlock(string|array $messages, string $style, bool $large = false)
Formats a message as a block of text.
at line line 78
string
getName()
Returns the canonical name of this helper.