[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/console/Symfony/Component/Console/Formatter/ -> OutputFormatterStyleInterface.php (source)

   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 style interface for defining styles.
  16   *
  17   * @author Konstantin Kudryashov <ever.zet@gmail.com>
  18   */
  19  interface OutputFormatterStyleInterface
  20  {
  21      /**
  22       * Sets style foreground color.
  23       *
  24       * @param string $color The color name
  25       */
  26      public function setForeground($color = null);
  27  
  28      /**
  29       * Sets style background color.
  30       *
  31       * @param string $color The color name
  32       */
  33      public function setBackground($color = null);
  34  
  35      /**
  36       * Sets some specific style option.
  37       *
  38       * @param string $option The option name
  39       */
  40      public function setOption($option);
  41  
  42      /**
  43       * Unsets some specific style option.
  44       *
  45       * @param string $option The option name
  46       */
  47      public function unsetOption($option);
  48  
  49      /**
  50       * Sets multiple style options at once.
  51       *
  52       * @param array $options
  53       */
  54      public function setOptions(array $options);
  55  
  56      /**
  57       * Applies the style to a given text.
  58       *
  59       * @param string $text The text to style
  60       *
  61       * @return string
  62       */
  63      public function apply($text);
  64  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1