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 OutputFormatterInterface

Formatter interface for console output.

Direct known implementers

Symfony\Component\Console\Formatter\OutputFormatter
Namespace: Symfony\Component\Console\Formatter
Author: Konstantin Kudryashov ever.zet@gmail.com
Located at Formatter/OutputFormatterInterface.php
Methods summary
public
# setDecorated( boolean $decorated )

Sets the decorated flag.

Sets the decorated flag.

Parameters

$decorated
Whether to decorate the messages or not
public boolean
# isDecorated( )

Gets the decorated flag.

Gets the decorated flag.

Returns

boolean
true if the output will decorate messages, false otherwise
public
# setStyle( string $name, Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style )

Sets a new style.

Sets a new style.

Parameters

$name
The style name
$style
The style instance
public boolean
# hasStyle( string $name )

Checks if output formatter has style with specified name.

Checks if output formatter has style with specified name.

Parameters

$name

Returns

boolean
public Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
# getStyle( string $name )

Gets style options from style with specified name.

Gets style options from style with specified name.

Parameters

$name

Returns

Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
public string
# format( string $message )

Formats a message according to the given styles.

Formats a message according to the given styles.

Parameters

$message
The message to style

Returns

string
The styled message
Peridot API documentation generated by ApiGen