Debugger
in package
Class Debugger.
Table of Contents
- $collections : array<string|int, mixed>
- $debugbarEnabled : bool
- $debugbarView : string
- $options : array<string|int, mixed>
- addCollection() : static
- addCollector() : static
- convertSize() : string
- disableDebugbar() : static
- Disables debugbar rendering.
- enableDebugbar() : static
- Enables debugbar rendering.
- getActivities() : array<string, mixed>
- getCollection() : Collection|null
- getCollections() : array<string, Collection>
- getDebugbarView() : string
- getOptions() : array<string, mixed>
- isDebugbarEnabled() : bool
- Tells if debugbar rendering is enabled.
- makeDebugValue() : string
- makeSafeName() : string
- renderDebugbar() : string
- roundVersion() : string
- Remove dots and zeros from the end of the version.
- setDebugbarView() : static
- setOptions() : static
- addActivityValues() : void
Properties
$collections
protected
array<string|int, mixed>
$collections
= []
$debugbarEnabled
protected
bool
$debugbarEnabled
= true
$debugbarView
protected
string
$debugbarView
= __DIR__ . '/Views/debugbar/debugbar.php'
$options
protected
array<string|int, mixed>
$options
= []
Methods
addCollection()
public
addCollection(Collection $collection) : static
Parameters
- $collection : Collection
Return values
static —addCollector()
public
addCollector(Collector $collector, string $collectionName) : static
Parameters
- $collector : Collector
- $collectionName : string
Return values
static —convertSize()
public
static convertSize(float|int $size) : string
Parameters
- $size : float|int
Return values
string —disableDebugbar()
Disables debugbar rendering.
public
disableDebugbar() : static
Tags
Return values
static —enableDebugbar()
Enables debugbar rendering.
public
enableDebugbar() : static
Tags
Return values
static —getActivities()
public
getActivities() : array<string, mixed>
Return values
array<string, mixed> —getCollection()
public
getCollection(string $name) : Collection|null
Parameters
- $name : string
Return values
Collection|null —getCollections()
public
getCollections() : array<string, Collection>
Return values
array<string, Collection> —getDebugbarView()
public
getDebugbarView() : string
Return values
string —getOptions()
public
getOptions() : array<string, mixed>
Return values
array<string, mixed> —isDebugbarEnabled()
Tells if debugbar rendering is enabled.
public
isDebugbarEnabled() : bool
Tags
Return values
bool —makeDebugValue()
public
static makeDebugValue(mixed $value) : string
Parameters
- $value : mixed
Return values
string —makeSafeName()
public
static makeSafeName(string $name) : string
Parameters
- $name : string
Return values
string —renderDebugbar()
public
renderDebugbar() : string
Return values
string —roundVersion()
Remove dots and zeros from the end of the version.
public
static roundVersion(string $version) : string
Parameters
- $version : string
Return values
string —setDebugbarView()
public
setDebugbarView(string $file) : static
Parameters
- $file : string
Return values
static —setOptions()
public
setOptions(array<string, mixed> $options) : static
Parameters
- $options : array<string, mixed>
Return values
static —addActivityValues()
protected
addActivityValues(array<string, mixed> &$activity, float $min, float $max) : void
Parameters
- $activity : array<string, mixed>
- $min : float
- $max : float