Copied!

Formatter interface for console output.

Abstract Interface
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 )
 

Sets the decorated flag.

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

Sets a new style.

© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration