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