69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
|
name: OutputFormatterStyle
|
||
|
class_comment: '# * Formatter style class for defining styles.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @author Konstantin Kudryashov <ever.zet@gmail.com>'
|
||
|
dependencies:
|
||
|
- name: Color
|
||
|
type: class
|
||
|
source: Symfony\Component\Console\Color
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: __construct
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: foreground
|
||
|
default: 'null'
|
||
|
- name: background
|
||
|
default: 'null'
|
||
|
- name: options
|
||
|
default: '[]'
|
||
|
comment: "# * Formatter style class for defining styles.\n# *\n# * @author Konstantin\
|
||
|
\ Kudryashov <ever.zet@gmail.com>\n# */\n# class OutputFormatterStyle implements\
|
||
|
\ OutputFormatterStyleInterface\n# {\n# private Color $color;\n# private string\
|
||
|
\ $foreground;\n# private string $background;\n# private array $options;\n# private\
|
||
|
\ ?string $href = null;\n# private bool $handlesHrefGracefully;\n# \n# /**\n#\
|
||
|
\ * Initializes output formatter style.\n# *\n# * @param string|null $foreground\
|
||
|
\ The style foreground color name\n# * @param string|null $background The style\
|
||
|
\ background color name"
|
||
|
- name: setForeground
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: color
|
||
|
comment: null
|
||
|
- name: setBackground
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: color
|
||
|
comment: null
|
||
|
- name: setHref
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: url
|
||
|
comment: null
|
||
|
- name: setOption
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: option
|
||
|
comment: null
|
||
|
- name: unsetOption
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: option
|
||
|
comment: null
|
||
|
- name: setOptions
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: options
|
||
|
comment: null
|
||
|
- name: apply
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: text
|
||
|
comment: null
|
||
|
traits:
|
||
|
- Symfony\Component\Console\Color
|
||
|
interfaces:
|
||
|
- OutputFormatterStyleInterface
|