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

  • OutputFormatter
  • OutputFormatterStyle
  • OutputFormatterStyleStack

Interfaces

  • OutputFormatterInterface
  • OutputFormatterStyleInterface
  • 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\Formatter;
13: 
14: /**
15:  * Formatter interface for console output.
16:  *
17:  * @author Konstantin Kudryashov <ever.zet@gmail.com>
18:  *
19:  * @api
20:  */
21: interface OutputFormatterInterface
22: {
23:     /**
24:      * Sets the decorated flag.
25:      *
26:      * @param Boolean $decorated Whether to decorate the messages or not
27:      *
28:      * @api
29:      */
30:     public function setDecorated($decorated);
31: 
32:     /**
33:      * Gets the decorated flag.
34:      *
35:      * @return Boolean true if the output will decorate messages, false otherwise
36:      *
37:      * @api
38:      */
39:     public function isDecorated();
40: 
41:     /**
42:      * Sets a new style.
43:      *
44:      * @param string                        $name  The style name
45:      * @param OutputFormatterStyleInterface $style The style instance
46:      *
47:      * @api
48:      */
49:     public function setStyle($name, OutputFormatterStyleInterface $style);
50: 
51:     /**
52:      * Checks if output formatter has style with specified name.
53:      *
54:      * @param string $name
55:      *
56:      * @return Boolean
57:      *
58:      * @api
59:      */
60:     public function hasStyle($name);
61: 
62:     /**
63:      * Gets style options from style with specified name.
64:      *
65:      * @param string $name
66:      *
67:      * @return OutputFormatterStyleInterface
68:      *
69:      * @api
70:      */
71:     public function getStyle($name);
72: 
73:     /**
74:      * Formats a message according to the given styles.
75:      *
76:      * @param string $message The message to style
77:      *
78:      * @return string The styled message
79:      *
80:      * @api
81:      */
82:     public function format($message);
83: }
84: 
php-coveralls API documentation generated by ApiGen 2.8.0