Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • OutputFormatter
  • OutputFormatterStyle
  • OutputFormatterStyleStack

Interfaces

  • OutputFormatterInterface
  • OutputFormatterStyleInterface
  • Overview
  • Namespace
  • Class

Interface OutputFormatterStyleInterface

Formatter style interface for defining styles.

Direct known implementers

Symfony\Component\Console\Formatter\OutputFormatterStyle
Namespace: Symfony\Component\Console\Formatter
Author: Konstantin Kudryashov ever.zet@gmail.com
Located at Formatter/OutputFormatterStyleInterface.php
Methods summary
public
# setForeground( string $color = null )

Sets style foreground color.

Sets style foreground color.

Parameters

$color
The color name
public
# setBackground( string $color = null )

Sets style background color.

Sets style background color.

Parameters

$color
The color name
public
# setOption( string $option )

Sets some specific style option.

Sets some specific style option.

Parameters

$option
The option name
public
# unsetOption( string $option )

Unsets some specific style option.

Unsets some specific style option.

Parameters

$option
The option name
public
# setOptions( array $options )

Sets multiple style options at once.

Sets multiple style options at once.

Parameters

$options
public string
# apply( string $text )

Applies the style to a given text.

Applies the style to a given text.

Parameters

$text
The text to style

Returns

string
Peridot API documentation generated by ApiGen