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

Breadcrumb

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

interface OutputInterface

OutputInterface is the interface implemented by all Output classes.

@author Fabien Potencier <fabien@symfony.com>

@method bool isSilent()

Hierarchy

  • interface \Symfony\Component\Console\Output\OutputInterface

Expanded class hierarchy of OutputInterface

All classes that implement OutputInterface

95 files declare their use of OutputInterface
AboutCommand.php in vendor/composer/composer/src/Composer/Command/AboutCommand.php
Application.php in vendor/composer/composer/src/Composer/Console/Application.php
Application.php in vendor/symfony/console/Application.php
ArchiveCommand.php in vendor/composer/composer/src/Composer/Command/ArchiveCommand.php
AuditCommand.php in vendor/composer/composer/src/Composer/Command/AuditCommand.php

... See full list

File

vendor/symfony/console/Output/OutputInterface.php, line 23

Namespace

Symfony\Component\Console\Output
View source
interface OutputInterface {
    public const VERBOSITY_SILENT = 8;
    public const VERBOSITY_QUIET = 16;
    public const VERBOSITY_NORMAL = 32;
    public const VERBOSITY_VERBOSE = 64;
    public const VERBOSITY_VERY_VERBOSE = 128;
    public const VERBOSITY_DEBUG = 256;
    public const OUTPUT_NORMAL = 1;
    public const OUTPUT_RAW = 2;
    public const OUTPUT_PLAIN = 4;
    
    /**
     * Writes a message to the output.
     *
     * @param bool $newline Whether to add a newline
     * @param int  $options A bitmask of options (one of the OUTPUT or VERBOSITY constants),
     *                      0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
     */
    public function write(string|iterable $messages, bool $newline = false, int $options = 0) : void;
    
    /**
     * Writes a message to the output and adds a newline at the end.
     *
     * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants),
     *                     0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
     */
    public function writeln(string|iterable $messages, int $options = 0) : void;
    
    /**
     * Sets the verbosity of the output.
     *
     * @param self::VERBOSITY_* $level
     */
    public function setVerbosity(int $level) : void;
    
    /**
     * Gets the current verbosity of the output.
     *
     * @return self::VERBOSITY_*
     */
    public function getVerbosity() : int;
    
    /**
     * Returns whether verbosity is quiet (-q).
     */
    public function isQuiet() : bool;
    
    /**
     * Returns whether verbosity is verbose (-v).
     */
    public function isVerbose() : bool;
    
    /**
     * Returns whether verbosity is very verbose (-vv).
     */
    public function isVeryVerbose() : bool;
    
    /**
     * Returns whether verbosity is debug (-vvv).
     */
    public function isDebug() : bool;
    
    /**
     * Sets the decorated flag.
     */
    public function setDecorated(bool $decorated) : void;
    
    /**
     * Gets the decorated flag.
     */
    public function isDecorated() : bool;
    public function setFormatter(OutputFormatterInterface $formatter) : void;
    
    /**
     * Returns current output formatter instance.
     */
    public function getFormatter() : OutputFormatterInterface;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
OutputInterface::getFormatter public function Returns current output formatter instance. 3
OutputInterface::getVerbosity public function Gets the current verbosity of the output. 3
OutputInterface::isDebug public function Returns whether verbosity is debug (-vvv). 3
OutputInterface::isDecorated public function Gets the decorated flag. 3
OutputInterface::isQuiet public function Returns whether verbosity is quiet (-q). 3
OutputInterface::isVerbose public function Returns whether verbosity is verbose (-v). 3
OutputInterface::isVeryVerbose public function Returns whether verbosity is very verbose (-vv). 3
OutputInterface::OUTPUT_NORMAL public constant
OutputInterface::OUTPUT_PLAIN public constant
OutputInterface::OUTPUT_RAW public constant
OutputInterface::setDecorated public function Sets the decorated flag. 3
OutputInterface::setFormatter public function 3
OutputInterface::setVerbosity public function Sets the verbosity of the output. 3
OutputInterface::VERBOSITY_DEBUG public constant
OutputInterface::VERBOSITY_NORMAL public constant
OutputInterface::VERBOSITY_QUIET public constant
OutputInterface::VERBOSITY_SILENT public constant
OutputInterface::VERBOSITY_VERBOSE public constant
OutputInterface::VERBOSITY_VERY_VERBOSE public constant
OutputInterface::write public function Writes a message to the output. 3
OutputInterface::writeln public function Writes a message to the output and adds a newline at the end. 3

API Navigation

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