NullOutputFormatter.php
2 years ago
NullOutputFormatterStyle.php
2 years ago
OutputFormatter.php
2 years ago
OutputFormatterInterface.php
2 years ago
OutputFormatterStyle.php
2 years ago
OutputFormatterStyleInterface.php
2 years ago
OutputFormatterStyleStack.php
2 years ago
WrappableOutputFormatterInterface.php
2 years ago
OutputFormatterStyleInterface.php
48 lines
| 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 | namespace IAWP_SCOPED\Symfony\Component\Console\Formatter; |
| 12 | |
| 13 | /** |
| 14 | * Formatter style interface for defining styles. |
| 15 | * |
| 16 | * @author Konstantin Kudryashov <ever.zet@gmail.com> |
| 17 | * @internal |
| 18 | */ |
| 19 | interface OutputFormatterStyleInterface |
| 20 | { |
| 21 | /** |
| 22 | * Sets style foreground color. |
| 23 | */ |
| 24 | public function setForeground(string $color = null); |
| 25 | /** |
| 26 | * Sets style background color. |
| 27 | */ |
| 28 | public function setBackground(string $color = null); |
| 29 | /** |
| 30 | * Sets some specific style option. |
| 31 | */ |
| 32 | public function setOption(string $option); |
| 33 | /** |
| 34 | * Unsets some specific style option. |
| 35 | */ |
| 36 | public function unsetOption(string $option); |
| 37 | /** |
| 38 | * Sets multiple style options at once. |
| 39 | */ |
| 40 | public function setOptions(array $options); |
| 41 | /** |
| 42 | * Applies the style to a given text. |
| 43 | * |
| 44 | * @return string |
| 45 | */ |
| 46 | public function apply(string $text); |
| 47 | } |
| 48 |