- Full name:
\Symfony\Component\Console\Formatter\NullOutputFormatterStyle
- This class is marked as final and can't be subclassed
- This class implements:
\Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
- This class is a Final class
Applies the style to a given text.
public apply(string $text): string
Parameters:
Parameter | Type | Description |
---|---|---|
$text |
string |
Sets style background color.
public setBackground(string $color = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$color |
string |
Sets style foreground color.
public setForeground(string $color = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$color |
string |
Sets some specific style option.
public setOption(string $option): void
Parameters:
Parameter | Type | Description |
---|---|---|
$option |
string |
Sets multiple style options at once.
public setOptions(array $options): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options |
array |
Unsets some specific style option.
public unsetOption(string $option): void
Parameters:
Parameter | Type | Description |
---|---|---|
$option |
string |