LogCollection
extends Collection
in package
Class LogCollection.
Table of Contents
Properties
- $actions : array<string|int, string>
- $collectors : array<string|int, Collector>
- $icon : string
- $iconPath : string
- $name : string
Methods
- __construct() : mixed
- addAction() : static
- addCollector() : static
- getActions() : array<string|int, string>
- getActivities() : array<int, array<int, array<string, mixed>>>
- getCollectors() : array<string|int, Collector>
- getIcon() : string
- getName() : string
- getSafeName() : string
- hasCollectors() : bool
- hasIcon() : bool
- setIcon() : static
- prepare() : void
Properties
$actions
protected
array<string|int, string>
$actions
= []
$collectors
protected
array<string|int, Collector>
$collectors
= []
$icon
protected
string
$icon
= ''
$iconPath
protected
string
$iconPath
= __DIR__ . '/icons/log.svg'
$name
protected
string
$name
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
addAction()
public
addAction(string $action) : static
Parameters
- $action : string
Return values
staticaddCollector()
public
addCollector(Collector $collector) : static
Parameters
- $collector : Collector
Return values
staticgetActions()
public
getActions() : array<string|int, string>
Return values
array<string|int, string>getActivities()
public
getActivities() : array<int, array<int, array<string, mixed>>>
Return values
array<int, array<int, array<string, mixed>>>getCollectors()
public
getCollectors() : array<string|int, Collector>
Return values
array<string|int, Collector>getIcon()
public
getIcon() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetSafeName()
public
getSafeName() : string
Return values
stringhasCollectors()
public
hasCollectors() : bool
Return values
boolhasIcon()
public
hasIcon() : bool
Return values
boolsetIcon()
public
setIcon(string $icon) : static
Parameters
- $icon : string
Return values
staticprepare()
protected
prepare() : void