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

Class OutputFormatterStyleStack

Namespace: Symfony\Component\Console\Formatter
Author: Jean-François Simon contact@jfsimon.fr
Located at Formatter/OutputFormatterStyleStack.php
Methods summary
public
# __construct( Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $emptyStyle = null )

Constructor.

Constructor.

Parameters

$emptyStyle
public
# reset( )

Resets stack (ie. empty internal arrays).

Resets stack (ie. empty internal arrays).

public
# push( Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style )

Pushes a style in the stack.

Pushes a style in the stack.

Parameters

$style
public Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
# pop( Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style = null )

Pops a style from the stack.

Pops a style from the stack.

Parameters

$style

Returns

Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

Throws

Symfony\Component\Console\Exception\InvalidArgumentException
When style tags incorrectly nested
public Symfony\Component\Console\Formatter\OutputFormatterStyle
# getCurrent( )

Computes current style with stacks top codes.

Computes current style with stacks top codes.

Returns

Symfony\Component\Console\Formatter\OutputFormatterStyle
public Symfony\Component\Console\Formatter\OutputFormatterStyleStack
# setEmptyStyle( Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $emptyStyle )

Parameters

$emptyStyle

Returns

Symfony\Component\Console\Formatter\OutputFormatterStyleStack
public Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
# getEmptyStyle( )

Returns

Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
Peridot API documentation generated by ApiGen