Documentation

Presenter
in package

A Presenter service.

Table of Contents

VERBOSE  = 1
$cloner  : mixed
$dumper  : mixed
$exceptionsImportants  : mixed
$styles  : mixed
__construct()  : mixed
addCasters()  : mixed
Register casters.
present()  : string
Present a full representation of the value.
presentRef()  : string
Present a reference to the value.

Constants

Properties

$exceptionsImportants

private mixed $exceptionsImportants = ["*message", "*code", "*file", "*line", "Exceptionprevious"]

$styles

private mixed $styles = ['num' => 'number', 'const' => 'const', 'str' => 'string', 'cchr' => 'default', 'note' => 'class', 'ref' => 'default', 'public' => 'public', 'protected' => 'protected', 'private' => 'private', 'meta' => 'comment', 'key' => 'comment', 'index' => 'number']

Methods

__construct()

public __construct(OutputFormatter $formatter[, mixed $forceArrayIndexes = false ]) : mixed
Parameters
$formatter : OutputFormatter
$forceArrayIndexes : mixed = false
Return values
mixed

present()

Present a full representation of the value.

public present(mixed $value[, int $depth = null ], int $options) : string

If $depth is 0, the value will be presented as a ref instead.

Parameters
$value : mixed
$depth : int = null

(default: null)

$options : int

One of Presenter constants

Return values
string

presentRef()

Present a reference to the value.

public presentRef(mixed $value) : string
Parameters
$value : mixed
Return values
string

Search results