Copied!

OutputInterface is the interface implemented by all Output classes.

AbstractInterface
Constants
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_NORMAL = 1
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_PLAIN = 4
public Symfony\Component\Console\Output\OutputInterface::OUTPUT_RAW = 2
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_DEBUG = 256
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_NORMAL = 32
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_QUIET = 16
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERBOSE = 64
public Symfony\Component\Console\Output\OutputInterface::VERBOSITY_VERY_VERBOSE = 128
Methods
public abstract getFormatter() : Symfony\Component\Console\Formatter\OutputFormatterInterface
 

Returns current output formatter instance.

public abstract getVerbosity() : int
 

Gets the current verbosity of the output.

public abstract isDebug() : bool
 

Returns whether verbosity is debug (-vvv).

public abstract isDecorated() : bool
 

Gets the decorated flag.

public abstract isQuiet() : bool
 

Returns whether verbosity is quiet (-q).

public abstract isVerbose() : bool
 

Returns whether verbosity is verbose (-v).

public abstract isVeryVerbose() : bool
 

Returns whether verbosity is very verbose (-vv).

public abstract setDecorated(bool $decorated)
 

Sets the decorated flag.

  • return void
public abstract setFormatter(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter)
 
  • return void
public abstract setVerbosity(int $level)
 

Sets the verbosity of the output.

  • return void
public abstract write(Traversable|array|string $messages, bool $newline = false, int $options = 0)
 

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
  • return void
public abstract writeln(Traversable|array|string $messages, int $options = 0)
 

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
  • return void
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration