Properties

$dataFormater

$dataFormater : 

Type

$exceptions

$exceptions : 

Type

$chainExceptions

$chainExceptions : 

Type

$defaultDataFormatter

$defaultDataFormatter : 

Type

Methods

setDefaultDataFormatter()

setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) 

Sets the default data formater instance used by all collectors subclassing this class

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

setDataFormatter()

setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) : $this

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

Returns

$this

formatVar()

formatVar(  $var) 

Parameters

$var

formatDuration()

formatDuration(  $seconds) 

Parameters

$seconds

formatBytes()

formatBytes(  $size,   $precision = 2) 

Parameters

$size
$precision

addException()

addException(\Exception  $e) 

Adds an exception to be profiled in the debug bar

Parameters

\Exception $e

addThrowable()

addThrowable(\Throwable  $e) 

Adds a Throwable to be profiled in the debug bar

Parameters

\Throwable $e

setChainExceptions()

setChainExceptions(boolean  $chainExceptions = true) 

Configure whether or not all chained exceptions should be shown.

Parameters

boolean $chainExceptions

getExceptions()

getExceptions() : \DebugBar\DataCollector\array[\Throwable]

Returns the list of exceptions being profiled

Returns

\DebugBar\DataCollector\array[\Throwable]

collect()

collect() 

formatExceptionData()

formatExceptionData(\Exception  $e) : array

Returns exception data as an array

Parameters

\Exception $e

Returns

array

formatThrowableData()

formatThrowableData(\Throwable  $e) : array

Returns Throwable data as an array

Parameters

\Throwable $e

Returns

array

getName()

getName() : string

Returns

string

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array