Copied!

Formatter interface for console output that supports word wrapping.

AbstractInterface
Methods
public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::format(?string $message) : ?string
 

Formats a message according to the given styles.

public abstract formatAndWrap(?string $message, int $width) : string
 

Formats a message according to the given styles, wrapping at $width (0 means no wrapping).

public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::getStyle(string $name) : Symfony\Component\Console\Formatter\OutputFormatterStyleInterface
 

Gets style options from style with specified name.

  • throws \InvalidArgumentException When style isn't defined
public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::hasStyle(string $name) : bool
 

Checks if output formatter has style with specified name.

public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::isDecorated() : bool
 

Whether the output will decorate messages.

public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::setDecorated(bool $decorated) : void
 

Sets the decorated flag.

public abstract Symfony\Component\Console\Formatter\OutputFormatterInterface::setStyle(string $name, Symfony\Component\Console\Formatter\OutputFormatterStyleInterface $style) : void
 

Sets a new style.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration