Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NullOutputFormatterStyle.php

class NullOutputFormatterStyle

@author Tien Xuan Vo <tien.xuan.vo@gmail.com>

Hierarchy

  • class \Symfony\Component\Console\Formatter\NullOutputFormatterStyle implements \Symfony\Component\Console\Formatter\OutputFormatterStyleInterface

Expanded class hierarchy of NullOutputFormatterStyle

File

vendor/symfony/console/Formatter/NullOutputFormatterStyle.php, line 17

Namespace

Symfony\Component\Console\Formatter
View source
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
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
NullOutputFormatterStyle::apply public function Applies the style to a given text. Overrides OutputFormatterStyleInterface::apply
NullOutputFormatterStyle::setBackground public function Sets style background color. Overrides OutputFormatterStyleInterface::setBackground
NullOutputFormatterStyle::setForeground public function Sets style foreground color. Overrides OutputFormatterStyleInterface::setForeground
NullOutputFormatterStyle::setOption public function Sets some specific style option. Overrides OutputFormatterStyleInterface::setOption
NullOutputFormatterStyle::setOptions public function Sets multiple style options at once. Overrides OutputFormatterStyleInterface::setOptions
NullOutputFormatterStyle::unsetOption public function Unsets some specific style option. Overrides OutputFormatterStyleInterface::unsetOption

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal