AppCollector
extends Collector
in package
Class AppCollector.
Table of Contents
- $activities : array<string|int, mixed>
- $app : App
- $data : array<string|int, mixed>
- $endMemory : int
- $endTime : float
- $name : string
- $startMemory : int
- $startTime : float
- __construct() : mixed
- addData() : static
- getActivities() : array<int, array<string, mixed>>
- getContents() : string
- getData() : array<string|int, mixed>
- getName() : string
- getSafeName() : string
- hasData() : bool
- setApp() : static
- setEndMemory() : static
- setEndTime() : static
- setStartMemory() : static
- setStartTime() : static
- getServices() : array<string, mixed>
- renderAvailableServices() : string
- renderLoadedServices() : string
Properties
$activities
protected
array<string|int, mixed>
$activities
= []
$app
protected
App
$app
$data
protected
array<string|int, mixed>
$data
= []
$endMemory
protected
int
$endMemory
$endTime
protected
float
$endTime
$name
protected
string
$name
$startMemory
protected
int
$startMemory
$startTime
protected
float
$startTime
Methods
__construct()
public
__construct([string $name = 'default' ]) : mixed
Parameters
- $name : string = 'default'
Return values
mixed —addData()
public
addData(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
Return values
static —getActivities()
public
getActivities() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>> —getContents()
public
getContents() : string
Return values
string —getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
public
getName() : string
Return values
string —getSafeName()
public
getSafeName() : string
Return values
string —hasData()
public
hasData() : bool
Return values
bool —setApp()
public
setApp(App $app) : static
Parameters
- $app : App
Return values
static —setEndMemory()
public
setEndMemory([int|null $memoryUsage = null ]) : static
Parameters
- $memoryUsage : int|null = null
Return values
static —setEndTime()
public
setEndTime([float|null $microtime = null ]) : static
Parameters
- $microtime : float|null = null
Return values
static —setStartMemory()
public
setStartMemory([int|null $memoryUsage = null ]) : static
Parameters
- $memoryUsage : int|null = null
Return values
static —setStartTime()
public
setStartTime([float|null $microtime = null ]) : static
Parameters
- $microtime : float|null = null
Return values
static —getServices()
protected
getServices() : array<string, mixed>
Return values
array<string, mixed> —renderAvailableServices()
protected
renderAvailableServices() : string
Return values
string —renderLoadedServices()
protected
renderLoadedServices() : string