CoreFiles by mySites.guru
OutputFormatterStyleInterface.php60 lines, 1,216 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
34d196c803f32fac5fac145dee7742da
sha1
0fa9a4f564d47a7777d3baf6ddc2353e66e1c734
sha256
c0fd7a05a697f3427dcaa405dc9eebc015a23e6626dd4d0664dbb29660ce6520
<?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;

/**
 * Formatter style interface for defining styles.
 *
 * @author Konstantin Kudryashov <[email protected]>
 */
interface OutputFormatterStyleInterface
{
    /**
     * Sets style foreground color.
     *
     * @return void
     */
    public function setForeground(?string $color);

    /**
     * Sets style background color.
     *
     * @return void
     */
    public function setBackground(?string $color);

    /**
     * Sets some specific style option.
     *
     * @return void
     */
    public function setOption(string $option);

    /**
     * Unsets some specific style option.
     *
     * @return void
     */
    public function unsetOption(string $option);

    /**
     * Sets multiple style options at once.
     *
     * @return void
     */
    public function setOptions(array $options);

    /**
     * Applies the style to a given text.
     */
    public function apply(string $text): string;
}

The same content is in 107 releases, Joomla 5.0.0-alpha2 to 6.0.0-alpha3. See them all, or every version of this file.