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
  1: <?php
  2: 
  3: /*
  4:  * This file is part of the Symfony package.
  5:  *
  6:  * (c) Fabien Potencier <fabien@symfony.com>
  7:  *
  8:  * For the full copyright and license information, please view the LICENSE
  9:  * file that was distributed with this source code.
 10:  */
 11: 
 12: namespace Symfony\Component\Console\Output;
 13: 
 14: use Symfony\Component\Console\Formatter\OutputFormatterInterface;
 15: 
 16: /**
 17:  * OutputInterface is the interface implemented by all Output classes.
 18:  *
 19:  * @author Fabien Potencier <fabien@symfony.com>
 20:  *
 21:  * @api
 22:  */
 23: interface OutputInterface
 24: {
 25:     const VERBOSITY_QUIET   = 0;
 26:     const VERBOSITY_NORMAL  = 1;
 27:     const VERBOSITY_VERBOSE = 2;
 28: 
 29:     const OUTPUT_NORMAL = 0;
 30:     const OUTPUT_RAW = 1;
 31:     const OUTPUT_PLAIN = 2;
 32: 
 33:     /**
 34:      * Writes a message to the output.
 35:      *
 36:      * @param string|array $messages The message as an array of lines or a single string
 37:      * @param Boolean      $newline  Whether to add a newline or not
 38:      * @param integer      $type     The type of output (0: normal, 1: raw, 2: plain)
 39:      *
 40:      * @throws \InvalidArgumentException When unknown output type is given
 41:      *
 42:      * @api
 43:      */
 44:     public function write($messages, $newline = false, $type = 0);
 45: 
 46:     /**
 47:      * Writes a message to the output and adds a newline at the end.
 48:      *
 49:      * @param string|array $messages The message as an array of lines of a single string
 50:      * @param integer      $type     The type of output (0: normal, 1: raw, 2: plain)
 51:      *
 52:      * @api
 53:      */
 54:     public function writeln($messages, $type = 0);
 55: 
 56:     /**
 57:      * Sets the verbosity of the output.
 58:      *
 59:      * @param integer $level The level of verbosity
 60:      *
 61:      * @api
 62:      */
 63:     public function setVerbosity($level);
 64: 
 65:     /**
 66:      * Gets the current verbosity of the output.
 67:      *
 68:      * @return integer The current level of verbosity
 69:      *
 70:      * @api
 71:      */
 72:     public function getVerbosity();
 73: 
 74:     /**
 75:      * Sets the decorated flag.
 76:      *
 77:      * @param Boolean $decorated Whether to decorate the messages or not
 78:      *
 79:      * @api
 80:      */
 81:     public function setDecorated($decorated);
 82: 
 83:     /**
 84:      * Gets the decorated flag.
 85:      *
 86:      * @return Boolean true if the output will decorate messages, false otherwise
 87:      *
 88:      * @api
 89:      */
 90:     public function isDecorated();
 91: 
 92:     /**
 93:      * Sets output formatter.
 94:      *
 95:      * @param OutputFormatterInterface $formatter
 96:      *
 97:      * @api
 98:      */
 99:     public function setFormatter(OutputFormatterInterface $formatter);
100: 
101:     /**
102:      * Returns current output formatter instance.
103:      *
104:      * @return  OutputFormatterInterface
105:      *
106:      * @api
107:      */
108:     public function getFormatter();
109: }
110: 
php-coveralls API documentation generated by ApiGen 2.8.0