The Formatter class provides helpers to format messages.
- author Fabien Potencier
CloneableInstantiable
| Methods |
| public formatBlock(array|string $messages, string $style, bool $large = false) : string Formats a message as a block of text. |
| public formatSection(string $section, string $message, string $style = 'info') : string Formats a message within a section. |
| public getName() : string |
| public truncate(string $message, int $length, string $suffix = '...') : string Truncates a message to the given length. |
| Properties |
| Methods |