Documentation

NullOutputFormatter
in package
implements OutputFormatterInterface

Tags
author

Tien Xuan Vo tien.xuan.vo@gmail.com

Interfaces, Classes, Traits and Enums

OutputFormatterInterface
Formatter interface for console output.

Table of Contents

$style  : mixed
format()  : string|null
Formats a message according to the given styles.
getStyle()  : OutputFormatterStyleInterface
Gets style options from style with specified name.
hasStyle()  : bool
Checks if output formatter has style with specified name.
isDecorated()  : bool
Whether the output will decorate messages.
setDecorated()  : void
Sets the decorated flag.
setStyle()  : void
Sets a new style.

Properties

Methods

format()

Formats a message according to the given styles.

public format(string|null $message) : string|null
Parameters
$message : string|null
Return values
string|null

hasStyle()

Checks if output formatter has style with specified name.

public hasStyle(string $name) : bool
Parameters
$name : string
Return values
bool

isDecorated()

Whether the output will decorate messages.

public isDecorated() : bool
Return values
bool

setDecorated()

Sets the decorated flag.

public setDecorated(bool $decorated) : void
Parameters
$decorated : bool
Return values
void

Search results