Copied!

Formatter interface for console output.

AbstractInterface
Methods
public abstract format(?string $message) : ?string
 

Formats a message according to the given styles.

public abstract 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 hasStyle(string $name) : bool
 

Checks if output formatter has style with specified name.

public abstract isDecorated() : bool
 

Whether the output will decorate messages.

public abstract setDecorated(bool $decorated) : void
 

Sets the decorated flag.

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

Sets a new style.

© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration