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
NullOutputFormatterStyle.php
61 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 | * @author Tien Xuan Vo <tien.xuan.vo@gmail.com> |
| 15 | */ |
| 16 | final class NullOutputFormatterStyle implements OutputFormatterStyleInterface |
| 17 | { |
| 18 | /** |
| 19 | * {@inheritdoc} |
| 20 | */ |
| 21 | public function apply(string $text) : string |
| 22 | { |
| 23 | return $text; |
| 24 | } |
| 25 | /** |
| 26 | * {@inheritdoc} |
| 27 | */ |
| 28 | public function setBackground(?string $color = null) : void |
| 29 | { |
| 30 | // do nothing |
| 31 | } |
| 32 | /** |
| 33 | * {@inheritdoc} |
| 34 | */ |
| 35 | public function setForeground(?string $color = null) : void |
| 36 | { |
| 37 | // do nothing |
| 38 | } |
| 39 | /** |
| 40 | * {@inheritdoc} |
| 41 | */ |
| 42 | public function setOption(string $option) : void |
| 43 | { |
| 44 | // do nothing |
| 45 | } |
| 46 | /** |
| 47 | * {@inheritdoc} |
| 48 | */ |
| 49 | public function setOptions(array $options) : void |
| 50 | { |
| 51 | // do nothing |
| 52 | } |
| 53 | /** |
| 54 | * {@inheritdoc} |
| 55 | */ |
| 56 | public function unsetOption(string $option) : void |
| 57 | { |
| 58 | // do nothing |
| 59 | } |
| 60 | } |
| 61 |