api/symfony/Component/Console/Helper/FormatterHelper.yaml

58 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-09-26 09:03:21 +00:00
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: []