Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
 * @author Tien Xuan Vo <tien.xuan.vo@gmail.com>
16
 */
17
final class NullOutputFormatterStyle implements OutputFormatterStyleInterface
18
{
19
    public function apply(string $text): string
20
    {
21
        return $text;
22
    }
23
 
24
    public function setBackground(string $color = null): void
25
    {
26
        if (1 > \func_num_args()) {
27
            trigger_deprecation('symfony/console', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
28
        }
29
        // do nothing
30
    }
31
 
32
    public function setForeground(string $color = null): void
33
    {
34
        if (1 > \func_num_args()) {
35
            trigger_deprecation('symfony/console', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
36
        }
37
        // do nothing
38
    }
39
 
40
    public function setOption(string $option): void
41
    {
42
        // do nothing
43
    }
44
 
45
    public function setOptions(array $options): void
46
    {
47
        // do nothing
48
    }
49
 
50
    public function unsetOption(string $option): void
51
    {
52
        // do nothing
53
    }
54
}