platform/api/symfony/Component/Console/Helper/FormatterHelper.yaml
2024-09-02 10:44:11 -07:00

57 lines
1.2 KiB
YAML

name: FormatterHelper
class_comment: '# * The Formatter class provides helpers to format messages.
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: OutputFormatter
type: class
source: Symfony\Component\Console\Formatter\OutputFormatter
properties: []
methods:
- name: formatSection
visibility: public
parameters:
- name: section
- name: message
- name: style
default: '''info'''
comment: '# * The Formatter class provides helpers to format messages.
# *
# * @author Fabien Potencier <fabien@symfony.com>
# */
# class FormatterHelper extends Helper
# {
# /**
# * Formats a message within a section.'
- name: formatBlock
visibility: public
parameters:
- name: messages
- name: style
- name: large
default: 'false'
comment: '# * Formats a message as a block of text.'
- name: truncate
visibility: public
parameters:
- name: message
- name: length
- name: suffix
default: '''...'''
comment: '# * Truncates a message to the given length.'
- name: getName
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Console\Formatter\OutputFormatter
interfaces: []