Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • ConsoleOutput
  • NullOutput
  • Output
  • StreamOutput

Interfaces

  • ConsoleOutputInterface
  • OutputInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Interface OutputInterface

OutputInterface is the interface implemented by all Output classes.

Direct known implementers

Symfony\Component\Console\Output\ConsoleOutputInterface, Symfony\Component\Console\Output\Output

Indirect known implementers

Symfony\Component\Console\Output\ConsoleOutput, Symfony\Component\Console\Output\NullOutput, Symfony\Component\Console\Output\StreamOutput
Namespace: Symfony\Component\Console\Output
Author: Fabien Potencier <fabien@symfony.com>
Api
Located at console/Symfony/Component/Console/Output/OutputInterface.php
Methods summary
public
# write( string|array $messages, Boolean $newline = false, integer $type = 0 )

Writes a message to the output.

Writes a message to the output.

Parameters

$messages
string|array
$messages The message as an array of lines or a single string
$newline
Boolean
$newline Whether to add a newline or not
$type
integer
$type The type of output (0: normal, 1: raw, 2: plain)

Throws

InvalidArgumentException
When unknown output type is given

Api

public
# writeln( string|array $messages, integer $type = 0 )

Writes a message to the output and adds a newline at the end.

Writes a message to the output and adds a newline at the end.

Parameters

$messages
string|array
$messages The message as an array of lines of a single string
$type
integer
$type The type of output (0: normal, 1: raw, 2: plain)

Api

public
# setVerbosity( integer $level )

Sets the verbosity of the output.

Sets the verbosity of the output.

Parameters

$level
integer
$level The level of verbosity

Api

public integer
# getVerbosity( )

Gets the current verbosity of the output.

Gets the current verbosity of the output.

Returns

integer
The current level of verbosity

Api

public
# setDecorated( Boolean $decorated )

Sets the decorated flag.

Sets the decorated flag.

Parameters

$decorated
Boolean
$decorated Whether to decorate the messages or not

Api

public Boolean
# isDecorated( )

Gets the decorated flag.

Gets the decorated flag.

Returns

Boolean
true if the output will decorate messages, false otherwise

Api

public
# setFormatter( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter )

Sets output formatter.

Sets output formatter.

Parameters

$formatter
Symfony\Component\Console\Formatter\OutputFormatterInterface
$formatter

Api

public Symfony\Component\Console\Formatter\OutputFormatterInterface
# getFormatter( )

Returns current output formatter instance.

Returns current output formatter instance.

Returns

Symfony\Component\Console\Formatter\OutputFormatterInterface

Api

Constants summary
integer VERBOSITY_QUIET 0
#
integer VERBOSITY_NORMAL 1
#
integer VERBOSITY_VERBOSE 2
#
integer OUTPUT_NORMAL 0
#
integer OUTPUT_RAW 1
#
integer OUTPUT_PLAIN 2
#
php-coveralls API documentation generated by ApiGen 2.8.0