CoreFiles by mySites.guru
NullOutputFormatterStyle.php48 lines, 953 bytes, from Joomla_6.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.4.0-beta3
md5
7845f588bb7c3e9663b009d9ae6563f2
sha1
ede9f68eed1afa9c316b497edb349b6209f11c14
sha256
ba8dcc4c5a51d028abd669abf4ea7e3966b2dba827f299ef2084febf203b45de
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Formatter;

/**
 * @author Tien Xuan Vo <[email protected]>
 */
final class NullOutputFormatterStyle implements OutputFormatterStyleInterface
{
    public function apply(string $text): string
    {
        return $text;
    }

    public function setBackground(?string $color): void
    {
        // do nothing
    }

    public function setForeground(?string $color): void
    {
        // do nothing
    }

    public function setOption(string $option): void
    {
        // do nothing
    }

    public function setOptions(array $options): void
    {
        // do nothing
    }

    public function unsetOption(string $option): void
    {
        // do nothing
    }
}

The same content is in 47 releases, Joomla 6.0.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.