Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Console\Formatter; Chris@0: Chris@0: /** Chris@0: * Formatter style interface for defining styles. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: interface OutputFormatterStyleInterface Chris@0: { Chris@0: /** Chris@0: * Sets style foreground color. Chris@0: * Chris@0: * @param string $color The color name Chris@0: */ Chris@0: public function setForeground($color = null); Chris@0: Chris@0: /** Chris@0: * Sets style background color. Chris@0: * Chris@0: * @param string $color The color name Chris@0: */ Chris@0: public function setBackground($color = null); Chris@0: Chris@0: /** Chris@0: * Sets some specific style option. Chris@0: * Chris@0: * @param string $option The option name Chris@0: */ Chris@0: public function setOption($option); Chris@0: Chris@0: /** Chris@0: * Unsets some specific style option. Chris@0: * Chris@0: * @param string $option The option name Chris@0: */ Chris@0: public function unsetOption($option); Chris@0: Chris@0: /** Chris@0: * Sets multiple style options at once. Chris@0: */ Chris@0: public function setOptions(array $options); Chris@0: Chris@0: /** Chris@0: * Applies the style to a given text. Chris@0: * Chris@0: * @param string $text The text to style Chris@0: * Chris@0: * @return string Chris@0: */ Chris@0: public function apply($text); Chris@0: }